System.Threading.HostExecutionContext.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( bool disposing ) : void
disposing bool
return void
        public virtual void Dispose(bool disposing)
        {
        }

Same methods

HostExecutionContext::Dispose ( ) : void

Usage Example

Esempio n. 1
0
        public void Dispose()
        {
            if (this.IsPreAllocatedDefault)
            {
                return; //Do nothing if this is the default context
            }
#if FEATURE_CAS_POLICY
            if (_hostExecutionContext != null)
            {
                _hostExecutionContext.Dispose();
            }
#endif // FEATURE_CAS_POLICY
#if FEATURE_IMPERSONATION || FEATURE_COMPRESSEDSTACK
            if (_securityContext != null)
            {
                _securityContext.Dispose();
            }
#endif //FEATURE_IMPERSONATION || FEATURE_COMPRESSEDSTACK
        }