Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Configuration / System / Configuration / EmptyImpersonationContext.cs / 1 / 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
- WebPartCatalogCloseVerb.cs
- CompoundFileStreamReference.cs
- Converter.cs
- DXD.cs
- HijriCalendar.cs
- ConstraintManager.cs
- WindowsUpDown.cs
- TransactionInterop.cs
- CreateBookmarkScope.cs
- PersistenceTypeAttribute.cs
- BatchStream.cs
- WebServiceClientProxyGenerator.cs
- DataRow.cs
- X509Extension.cs
- SqlAliasesReferenced.cs
- JulianCalendar.cs
- AnnotationStore.cs
- TraceAsyncResult.cs
- HttpHostedTransportConfiguration.cs
- DocumentSequence.cs
- WebPartZoneCollection.cs
- TagMapCollection.cs
- MSAANativeProvider.cs
- HyperLinkColumn.cs
- sapiproxy.cs
- HierarchicalDataBoundControlAdapter.cs
- AnnouncementEndpoint.cs
- AssemblyHash.cs
- AdornerPresentationContext.cs
- CultureInfoConverter.cs
- ImpersonationContext.cs
- BamlVersionHeader.cs
- PropertyValueChangedEvent.cs
- MultipleViewPattern.cs
- DependencyPropertyChangedEventArgs.cs
- Int32CollectionConverter.cs
- MonthChangedEventArgs.cs
- AssemblyAttributes.cs
- PasswordRecovery.cs
- ListViewTableRow.cs
- IgnorePropertiesAttribute.cs
- ListSortDescriptionCollection.cs
- DesigntimeLicenseContextSerializer.cs
- EnumType.cs
- ReadOnlyCollection.cs
- InternalResources.cs
- TypefaceMap.cs
- XmlException.cs
- PolicyManager.cs
- FormViewPageEventArgs.cs
- ToolboxComponentsCreatingEventArgs.cs
- SaveFileDialog.cs
- TabletDevice.cs
- StatusBarAutomationPeer.cs
- WebRequestModulesSection.cs
- ErrorFormatter.cs
- XmlDataImplementation.cs
- ScopedKnownTypes.cs
- CompiledQueryCacheEntry.cs
- FeatureSupport.cs
- SudsParser.cs
- WebPartDescriptionCollection.cs
- NestPullup.cs
- SelectedGridItemChangedEvent.cs
- ProcessThread.cs
- KeySpline.cs
- BamlBinaryReader.cs
- EditorAttribute.cs
- ContainerFilterService.cs
- QuaternionIndependentAnimationStorage.cs
- HtmlEncodedRawTextWriter.cs
- SharedPerformanceCounter.cs
- FloaterBaseParagraph.cs
- ApplicationContext.cs
- MimeMapping.cs
- Effect.cs
- UInt64Converter.cs
- WmlValidatorAdapter.cs
- ImpersonationContext.cs
- TransactionBridgeSection.cs
- ValidationHelper.cs
- InvalidAsynchronousStateException.cs
- CookieHandler.cs
- DeferredTextReference.cs
- HttpCookie.cs
- ImageSource.cs
- SelectionProcessor.cs
- HMACSHA512.cs
- ContentHostHelper.cs
- EntityDataSourceWrapperCollection.cs
- CodePropertyReferenceExpression.cs
- ConditionBrowserDialog.cs
- AVElementHelper.cs
- Vector3DAnimation.cs
- KeyValueConfigurationElement.cs
- EntityDataSourceConfigureObjectContextPanel.cs
- FrameSecurityDescriptor.cs
- Bitmap.cs
- ApplicationContext.cs
- UrlRoutingModule.cs