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: 126.96.36.199 (188.8.131.52)
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.