Table of Contents

Method InitializeAsFirstInstance

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

InitializeAsFirstInstance(string)

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

public static Task<bool> InitializeAsFirstInstance(string uniqueName)

Parameters

uniqueName string

The unique name of the application.

Returns

Task<bool>

True if this is the first instance of the application; otherwise, false.