C# 클래스 SevenSoftware.Windows.InstanceAwareApplication

상속: System.Windows.Application, IPriorApplicationInstance, IDisposable
파일 보기 프로젝트 열기: robertbaker/SevenUpdate

공개 메소드들

메소드 설명
InstanceAwareApplication ( ) : System

Initializes a new instance of the InstanceAwareApplication class.

InstanceAwareApplication ( ApplicationInstanceAwareness awareness ) : System

Initializes a new instance of the InstanceAwareApplication class.

보호된 메소드들

메소드 설명
OnExit ( System.Windows.ExitEventArgs e ) : void

Raises the System.Windows.Application.Exit event.

OnStartup ( System.Windows.StartupEventArgs e ) : void

Raises the System.Windows.Application.Startup event.

OnStartup ( System.Windows.StartupEventArgs e, bool isFirstInstance ) : void

Raises the System.Windows.Application.Startup event.

OnStartupNextInstance ( StartupNextInstanceEventArgs e ) : void

Raises the InstanceAwareApplication.StartupNextInstance event.

OnStartupSignaledToPriorApplicationFailed ( ) : void

Called when the startup of the current application was unsuccessfully signaled to the prior application instance.

OnStartupSignaledToPriorApplicationSucceeded ( ) : void

Called when the startup of the current application was successfully signaled to the prior application instance.

비공개 메소드들

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

Releases unmanaged and - optionally - managed resources

ExtractParameters ( ApplicationInstanceAwareness awareness, string &prefix, IdentityReference &identity ) : void

Extracts some parameters from the specified ApplicationInstanceAwareness value.

GetApplicationId ( ) : string

Gets the application unique identifier.

GetPipeUri ( string applicationPath ) : Uri

Gets the Uri of the pipe used for inter-process communication.

IDisposable ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

IPriorApplicationInstance ( string args ) : void

Signals the startup of the next application instance.

InitializeFirstInstance ( Uri uri ) : void

Initializes the first application instance.

InitializeInstance ( System.Windows.StartupEventArgs e ) : bool

Initializes the application instance.

InitializeNextInstance ( Uri uri, string args ) : bool

Initializes the next application instance.

InitializeSynchronizationObjects ( string baseName, IdentityReference identity ) : void

Initializes the synchronization objects needed to deal with multiple instances of the same application.

OnStartupNextApplicationInstance ( string args ) : void

Called on next application instance startup.

TryDisposeSynchronizationObjects ( ) : void

Tries the dispose synchronization objects (if needed).

메소드 상세

InstanceAwareApplication() 공개 메소드

Initializes a new instance of the InstanceAwareApplication class.
More than one instance of the System.Windows.Application class is created per System.AppDomain.
public InstanceAwareApplication ( ) : System
리턴 System

InstanceAwareApplication() 공개 메소드

Initializes a new instance of the InstanceAwareApplication class.
More than one instance of the System.Windows.Application class is created per System.AppDomain.
public InstanceAwareApplication ( ApplicationInstanceAwareness awareness ) : System
awareness ApplicationInstanceAwareness The instance awareness of the application.
리턴 System

OnExit() 보호된 메소드

Raises the System.Windows.Application.Exit event.
protected OnExit ( System.Windows.ExitEventArgs e ) : void
e System.Windows.ExitEventArgs An System.Windows.ExitEventArgs that contains the event data.
리턴 void

OnStartup() 보호된 최종 메소드

Raises the System.Windows.Application.Startup event.
protected final OnStartup ( System.Windows.StartupEventArgs e ) : void
e System.Windows.StartupEventArgs A System.Windows.StartupEventArgs that contains the event data.
리턴 void

OnStartup() 보호된 메소드

Raises the System.Windows.Application.Startup event.
protected OnStartup ( System.Windows.StartupEventArgs e, bool isFirstInstance ) : void
e System.Windows.StartupEventArgs The System.Windows.StartupEventArgs instance containing the event data.
isFirstInstance bool If set to true the current instance is the first application instance.
리턴 void

OnStartupNextInstance() 보호된 메소드

Raises the InstanceAwareApplication.StartupNextInstance event.
protected OnStartupNextInstance ( StartupNextInstanceEventArgs e ) : void
e StartupNextInstanceEventArgs The StartupNextInstanceEventArgs instance containing the event data.
리턴 void

OnStartupSignaledToPriorApplicationFailed() 보호된 메소드

Called when the startup of the current application was unsuccessfully signaled to the prior application instance.
protected OnStartupSignaledToPriorApplicationFailed ( ) : void
리턴 void

OnStartupSignaledToPriorApplicationSucceeded() 보호된 메소드

Called when the startup of the current application was successfully signaled to the prior application instance.
protected OnStartupSignaledToPriorApplicationSucceeded ( ) : void
리턴 void