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.
Inheritance
System.Object
SingleInstanceLifetime
Implements
System.IDisposable
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|---|
System.String | applicationId |
Methods
View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Indicates disposing. |
Implements
System.IDisposable