C# Класс SevenSoftware.Windows.InstanceAwareApplication

Наследование: System.Windows.Application, IPriorApplicationInstance, IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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