C# 클래스 ImageGlass.Services.InstanceManagement.SingleInstance

Enforces single instance for an application.
상속: IDisposable
파일 보기 프로젝트 열기: d2phap/ImageGlass 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
ListenForArgumentsFromSuccessiveInstances ( ) : void

Listens for arguments being passed from successive instances of the applicaiton.

PassArgumentsToFirstInstance ( String arguments ) : System.Boolean

Passes the given arguments to the first running instance of the application.

SingleInstance ( System.Guid identifier ) : System

Enforces single instance for an application.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
CallOnArgumentsReceived ( Object state ) : void

Calls the OnArgumentsReceived method casting the state Object to String[].

ListenForArguments ( Object state ) : void

Listens for arguments on a named pipe.

OnArgumentsReceived ( String arguments ) : void

Fires the ArgumentsReceived event.

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

ListenForArgumentsFromSuccessiveInstances() 공개 메소드

Listens for arguments being passed from successive instances of the applicaiton.
public ListenForArgumentsFromSuccessiveInstances ( ) : void
리턴 void

PassArgumentsToFirstInstance() 공개 메소드

Passes the given arguments to the first running instance of the application.
public PassArgumentsToFirstInstance ( String arguments ) : System.Boolean
arguments String The arguments to pass.
리턴 System.Boolean

SingleInstance() 공개 메소드

Enforces single instance for an application.
public SingleInstance ( System.Guid identifier ) : System
identifier System.Guid An identifier unique to this application.
리턴 System