C# Class SevenSoftware.Windows.InstanceAwareApplication

Inheritance: System.Windows.Application, IPriorApplicationInstance, IDisposable
Afficher le fichier Open project: robertbaker/SevenUpdate

Méthodes publiques

Méthode Description
InstanceAwareApplication ( ) : System

Initializes a new instance of the InstanceAwareApplication class.

InstanceAwareApplication ( ApplicationInstanceAwareness awareness ) : System

Initializes a new instance of the InstanceAwareApplication class.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
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).

Method Details

InstanceAwareApplication() public méthode

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
Résultat System

InstanceAwareApplication() public méthode

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.
Résultat System

OnExit() protected méthode

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.
Résultat void

OnStartup() protected final méthode

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.
Résultat void

OnStartup() protected méthode

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.
Résultat void

OnStartupNextInstance() protected méthode

Raises the InstanceAwareApplication.StartupNextInstance event.
protected OnStartupNextInstance ( StartupNextInstanceEventArgs e ) : void
e StartupNextInstanceEventArgs The StartupNextInstanceEventArgs instance containing the event data.
Résultat void

OnStartupSignaledToPriorApplicationFailed() protected méthode

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

OnStartupSignaledToPriorApplicationSucceeded() protected méthode

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