Token returned by the AcquireAccess(ObjectAccessLevel, ConcurrentAccessToken) method. This token is intended to be used in a using block. Consumers of this method must call Complete() on success, and Dispose() on exception.
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 184.108.40.206 (220.127.116.11)
public struct ConcurrentAccessToken : IDisposable
Thetype exposes the following members.
Gets a null instance of thetype.
Indicates that the operation requiring access on an object failed.
Determines whether the currentis valid in the current context.
Indicates that the operation requiring access on an object has successfully completed.
Indicates that the operation requiring access on an object has completed. If the Complete() method is not invoked before the Dispose() method, the transaction is considered to have failed. Current threading models do not support transactions and therefore this semantic is currently unused, but it may be used in the future.
Gets the implementation of a specified interface for the specified object.(Defined by QueryInterfaceExtensions.)