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
- ZoomComboBox.cs
- DbProviderFactory.cs
- XmlSchema.cs
- TextComposition.cs
- ProxyManager.cs
- Matrix.cs
- SqlDataSourceFilteringEventArgs.cs
- TemplatePagerField.cs
- ColorTransformHelper.cs
- DebugView.cs
- EditingMode.cs
- TextPatternIdentifiers.cs
- FileDetails.cs
- WindowsPrincipal.cs
- DelegateArgumentValue.cs
- PagesSection.cs
- ConstraintEnumerator.cs
- ContractValidationHelper.cs
- ConfigUtil.cs
- URLMembershipCondition.cs
- XmlSerializerObjectSerializer.cs
- ImportRequest.cs
- AssemblyName.cs
- UnsafeNativeMethods.cs
- BrowserCapabilitiesFactory.cs
- RequestResizeEvent.cs
- Compiler.cs
- SupportedAddressingMode.cs
- MustUnderstandBehavior.cs
- GlyphsSerializer.cs
- DocumentSchemaValidator.cs
- EdmProviderManifest.cs
- ImageCodecInfoPrivate.cs
- GridViewRowEventArgs.cs
- CustomAttributeBuilder.cs
- DateTimeValueSerializerContext.cs
- CommentEmitter.cs
- Inflater.cs
- SchemaAttDef.cs
- CookielessHelper.cs
- InputLanguage.cs
- SystemTcpStatistics.cs
- AmbientProperties.cs
- ApplicationInfo.cs
- Focus.cs
- UnsafeNativeMethods.cs
- KeyBinding.cs
- assertwrapper.cs
- UdpReplyToBehavior.cs
- ByteFacetDescriptionElement.cs
- Positioning.cs
- CompositeFontInfo.cs
- XmlSchemaParticle.cs
- StorageEndPropertyMapping.cs
- RegexRunnerFactory.cs
- XpsDocument.cs
- ConstantSlot.cs
- ButtonRenderer.cs
- ListParagraph.cs
- PtsContext.cs
- SmtpCommands.cs
- XmlSchemaAttributeGroupRef.cs
- ColorInterpolationModeValidation.cs
- DefaultObjectMappingItemCollection.cs
- MetaData.cs
- CodeIdentifiers.cs
- SmtpTransport.cs
- WebSysDisplayNameAttribute.cs
- HttpWriter.cs
- ProfilePropertySettingsCollection.cs
- XmlDocumentFragment.cs
- XhtmlBasicPanelAdapter.cs
- UIElement3D.cs
- GridLength.cs
- ScriptIgnoreAttribute.cs
- Matrix3DStack.cs
- TryCatch.cs
- ButtonRenderer.cs
- CompositeTypefaceMetrics.cs
- ErasingStroke.cs
- Processor.cs
- MappedMetaModel.cs
- MouseEvent.cs
- ResourcesBuildProvider.cs
- StringSorter.cs
- DataSourceListEditor.cs
- BinaryCommonClasses.cs
- MutexSecurity.cs
- GridViewRowPresenter.cs
- PassportPrincipal.cs
- SubMenuStyleCollection.cs
- CommandCollectionEditor.cs
- CapabilitiesSection.cs
- Decoder.cs
- ScrollEvent.cs
- TranslateTransform3D.cs
- HostingEnvironment.cs
- HyperlinkAutomationPeer.cs
- SortQueryOperator.cs
- _ConnectOverlappedAsyncResult.cs