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

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
            Dispose(true);
        }

Same methods

HostExecutionContext::Dispose ( bool disposing ) : 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
        }