Table of Contents

Class SingleInstance<TApplication>

Namespace
Innova.Prism.Library.ClassDefinitions
Assembly
Innova.Prism.Library.dll

Represents a static class for managing single instance applications.

public static class SingleInstance<TApplication> where TApplication : Application, ISingleInstanceApp

Type Parameters

TApplication

The type of the application.

Inheritance
SingleInstance<TApplication>

Properties

CommandLineArgs

Gets the list of command line arguments for the application.

Methods

Cleanup()

Cleans up single-instance code, clearing shared resources, mutexes, etc.

InitializeAsFirstInstance(string)

Checks if the instance of the application attempting to start is the first instance. If not, activates the first instance.