Table of Contents

Method SetDisposed

Namespace
MVVrus.AspNetCore.ActiveSession
Assembly
MVVrus.AspNetCore.ActiveSession.dll

SetDisposed()

Protected. Changes state of the object to flag that its disposing is started (synchronously or asynchronously).

protected bool SetDisposed()

Returns

bool

true if the state just has been changed to disposing/disposed, otherwise false

Remarks

The state is changed in a thread-safe manner. This method is called at the beginning of Dispose() method. It also MUST be called at the beginning of DisposeAsync() method in all descendent classes that implements interface IAsyncDisposable