Class SingleInstanceLifetime
Provides the ability to release the lifetime of the current application instance by obtaining and releasing a local mutex. Please dispose this object to release the instance.
Implements
Namespace: Sartorius.SAF.Infrastructure
Assembly: Sartorius.SAF.dll
Syntax
public class SingleInstanceLifetime : IDisposable
Constructors
View SourceSingleInstanceLifetime(string)
Initializes a new instance of the SingleInstanceLifetime class.
Declaration
public SingleInstanceLifetime(string applicationId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | applicationId |
Methods
View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(bool)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | Indicates disposing. |