Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- BuildResult.cs
- WorkflowPrinting.cs
- RightsManagementPermission.cs
- GlobalizationSection.cs
- HitTestParameters.cs
- ResourceDefaultValueAttribute.cs
- IndexedGlyphRun.cs
- HttpValueCollection.cs
- DeferredSelectedIndexReference.cs
- RealProxy.cs
- TextCompositionManager.cs
- SiteMapNode.cs
- IgnoreFileBuildProvider.cs
- NativeMethods.cs
- GroupBoxRenderer.cs
- CopyOfAction.cs
- SHA1CryptoServiceProvider.cs
- EndpointDesigner.cs
- SchemaSetCompiler.cs
- FontSizeConverter.cs
- EntitySetRetriever.cs
- MdImport.cs
- XmlnsPrefixAttribute.cs
- PackageRelationshipCollection.cs
- DynamicValueConverter.cs
- SystemResources.cs
- sqlinternaltransaction.cs
- SID.cs
- WorkflowFormatterBehavior.cs
- ToolboxBitmapAttribute.cs
- CaseDesigner.xaml.cs
- EntityClientCacheEntry.cs
- SetterBase.cs
- IsolatedStorageFile.cs
- Zone.cs
- PackagingUtilities.cs
- SelfIssuedSamlTokenFactory.cs
- ipaddressinformationcollection.cs
- DispatcherObject.cs
- GeneralTransform3D.cs
- KnownBoxes.cs
- OrderedDictionaryStateHelper.cs
- ReferenceEqualityComparer.cs
- MetadataHelper.cs
- BitmapImage.cs
- XmlSchemaFacet.cs
- NetMsmqBindingCollectionElement.cs
- Button.cs
- FtpCachePolicyElement.cs
- MaterialCollection.cs
- UmAlQuraCalendar.cs
- MorphHelpers.cs
- CommandPlan.cs
- Pair.cs
- DataGridViewBand.cs
- XamlBrushSerializer.cs
- PrintPageEvent.cs
- XmlSchemaElement.cs
- BaseComponentEditor.cs
- ObjectContext.cs
- DeviceSpecificChoiceCollection.cs
- SR.Designer.cs
- LineServicesCallbacks.cs
- EntityStoreSchemaGenerator.cs
- RenderDataDrawingContext.cs
- FunctionImportElement.cs
- OrderByLifter.cs
- ActivityStatusChangeEventArgs.cs
- SharedConnectionWorkflowTransactionService.cs
- ThicknessAnimationUsingKeyFrames.cs
- HtmlTernaryTree.cs
- ChangeDirector.cs
- BinaryUtilClasses.cs
- XPathNodeIterator.cs
- Exceptions.cs
- LambdaExpression.cs
- COM2Enum.cs
- FixedHyperLink.cs
- Hashtable.cs
- BamlResourceDeserializer.cs
- QuaternionValueSerializer.cs
- AssemblyName.cs
- VectorKeyFrameCollection.cs
- PasswordTextContainer.cs
- ExpandSegment.cs
- ParseHttpDate.cs
- DashStyles.cs
- EnumValidator.cs
- PolicyException.cs
- MessageSmuggler.cs
- InheritanceContextChangedEventManager.cs
- MetadataArtifactLoaderFile.cs
- HttpResponseInternalWrapper.cs
- CategoryValueConverter.cs
- COM2Enum.cs
- CodeCommentStatement.cs
- storepermission.cs
- ZipIOCentralDirectoryFileHeader.cs
- SelectionProcessor.cs
- LocalBuilder.cs