Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / EmptyImpersonationContext.cs / 1305376 / EmptyImpersonationContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Configuration.Internal; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Globalization; using System.IO; using System.Runtime.InteropServices; using System.Security.Permissions; using System.Security; using System.Text; using System.Xml; // An impersonation context that does nothing // Used in cases where the Host does not require impersonation. class EmptyImpersonationContext : IDisposable { static IDisposable s_emptyImpersonationContext; static internal IDisposable GetStaticInstance() { if (s_emptyImpersonationContext == null) { s_emptyImpersonationContext = new EmptyImpersonationContext(); } return s_emptyImpersonationContext; } public void Dispose() {} } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Configuration.Internal; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Globalization; using System.IO; using System.Runtime.InteropServices; using System.Security.Permissions; using System.Security; using System.Text; using System.Xml; // An impersonation context that does nothing // Used in cases where the Host does not require impersonation. class EmptyImpersonationContext : IDisposable { static IDisposable s_emptyImpersonationContext; static internal IDisposable GetStaticInstance() { if (s_emptyImpersonationContext == null) { s_emptyImpersonationContext = new EmptyImpersonationContext(); } return s_emptyImpersonationContext; } public void Dispose() {} } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- SpecialNameAttribute.cs
- Formatter.cs
- FileAuthorizationModule.cs
- EncoderParameters.cs
- XamlRtfConverter.cs
- WindowsBrush.cs
- PassportAuthenticationEventArgs.cs
- ExceptionRoutedEventArgs.cs
- MarshalByRefObject.cs
- BehaviorDragDropEventArgs.cs
- ApplicationDirectoryMembershipCondition.cs
- HMACSHA512.cs
- BindingMemberInfo.cs
- JoinTreeNode.cs
- PersonalizationStateInfo.cs
- TypeTypeConverter.cs
- Span.cs
- RegionInfo.cs
- Int32Storage.cs
- StagingAreaInputItem.cs
- PointAnimationUsingKeyFrames.cs
- RepeatBehaviorConverter.cs
- Viewport3DVisual.cs
- AppSettingsReader.cs
- SoapTypeAttribute.cs
- MatchingStyle.cs
- MarkedHighlightComponent.cs
- X509Certificate2Collection.cs
- SchemaEntity.cs
- DataSourceHelper.cs
- PrintDialogException.cs
- WebPartMenuStyle.cs
- ObjectTag.cs
- NativeCppClassAttribute.cs
- OlePropertyStructs.cs
- ObjectStorage.cs
- XmlSchemaGroup.cs
- PaginationProgressEventArgs.cs
- DataBinding.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Transactions.cs
- SHA1Managed.cs
- NoClickablePointException.cs
- InvokeHandlers.cs
- CDSsyncETWBCLProvider.cs
- StringValueSerializer.cs
- WebServiceBindingAttribute.cs
- MetadataItem.cs
- safemediahandle.cs
- Converter.cs
- HttpInputStream.cs
- EdmToObjectNamespaceMap.cs
- StatusBarItem.cs
- ApplicationCommands.cs
- ReadContentAsBinaryHelper.cs
- dbenumerator.cs
- PrintEvent.cs
- HopperCache.cs
- ElapsedEventArgs.cs
- InputLanguageManager.cs
- WindowsTokenRoleProvider.cs
- ColorConvertedBitmap.cs
- StyleHelper.cs
- _NestedSingleAsyncResult.cs
- MenuTracker.cs
- ObjRef.cs
- EntityRecordInfo.cs
- DemultiplexingClientMessageFormatter.cs
- _ListenerAsyncResult.cs
- SerializationInfoEnumerator.cs
- DocumentAutomationPeer.cs
- SiteMapNodeItemEventArgs.cs
- UInt16.cs
- CriticalExceptions.cs
- PreApplicationStartMethodAttribute.cs
- RectAnimationBase.cs
- TabControl.cs
- ExtensionQuery.cs
- PropertyEmitter.cs
- TdsParserStateObject.cs
- InputReportEventArgs.cs
- DocumentPageHost.cs
- EdmProperty.cs
- ExcludePathInfo.cs
- UnsafeNativeMethods.cs
- SID.cs
- BindingContext.cs
- ResourcesGenerator.cs
- AxisAngleRotation3D.cs
- EmptyReadOnlyDictionaryInternal.cs
- CollectionViewGroupRoot.cs
- RIPEMD160.cs
- DateTimeOffset.cs
- _FtpControlStream.cs
- NavigatorOutput.cs
- EqualityArray.cs
- CollectionExtensions.cs
- FormsAuthenticationUser.cs
- DataGridItemCollection.cs