C# 클래스 rbscan.Helpers.SingleInstance

상속: IDisposable
파일 보기 프로젝트 열기: rbobot/rbscan 1 사용 예제들

공개 메소드들

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

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

PassArgumentsToFirstInstance ( string arguments ) : bool

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 ) : bool
arguments string The arguments to pass.
리턴 bool

SingleInstance() 공개 메소드

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