Table of Contents

Class AppInstanceTracker

Namespace
KSP.Networking.MP.Utils
Assembly
Assembly-CSharp.dll
public class AppInstanceTracker : IDisposable
Inheritance
AppInstanceTracker
Implements
Inherited Members
Extension Methods

Constructors

AppInstanceTracker(string)

public AppInstanceTracker(string name = null)

Parameters

name string

Fields

NO_INSTANCE_NAME

public const string NO_INSTANCE_NAME = "N/A"

Field Value

string

NO_INSTANCE_NUMBER

public const int NO_INSTANCE_NUMBER = 0

Field Value

int

NO_NAME

public const string NO_NAME = "N/A"

Field Value

string

SEMAPHORE_NAME_PREFIX

public const string SEMAPHORE_NAME_PREFIX = "InterceptGames"

Field Value

string

Properties

AppInstance

public static AppInstanceTracker AppInstance { get; }

Property Value

AppInstanceTracker

DirInstance

public static AppInstanceTracker DirInstance { get; }

Property Value

AppInstanceTracker

InstanceName

public string InstanceName { get; }

Property Value

string

InstanceNumber

public int InstanceNumber { get; }

Property Value

int

Name

public string Name { get; }

Property Value

string

UniqueString

public string UniqueString { get; }

Property Value

string

Methods

CreateAppInstanceTracker(string, AppInstanceTrackerType)

public static AppInstanceTracker CreateAppInstanceTracker(string baseName, AppInstanceTrackerType appInstanceTrackerType)

Parameters

baseName string
appInstanceTrackerType AppInstanceTrackerType

Returns

AppInstanceTracker

Dispose()

public void Dispose()

~AppInstanceTracker()

protected ~AppInstanceTracker()

FixNameString(string)

public static string FixNameString(string name)

Parameters

name string

Returns

string

GenerateSemaphoreName(string, int)

public static string GenerateSemaphoreName(string name, int counter)

Parameters

name string
counter int

Returns

string

Init(string)

public bool Init(string name = null)

Parameters

name string

Returns

bool

SetupSemaphore(string)

public bool SetupSemaphore(string name)

Parameters

name string

Returns

bool

TeardownSemaphore()

public void TeardownSemaphore()

Uninit()

public void Uninit()