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
- GridPatternIdentifiers.cs
- BinaryReader.cs
- SoapInteropTypes.cs
- TextElementCollection.cs
- SettingsPropertyValueCollection.cs
- TdsParserHelperClasses.cs
- Image.cs
- StoreUtilities.cs
- HierarchicalDataBoundControlAdapter.cs
- QuaternionValueSerializer.cs
- _LocalDataStoreMgr.cs
- OleDbEnumerator.cs
- XmlStreamNodeWriter.cs
- _AcceptOverlappedAsyncResult.cs
- TableParaClient.cs
- WebBrowsableAttribute.cs
- MouseButton.cs
- RuleElement.cs
- ConstNode.cs
- FormParameter.cs
- Border.cs
- OleDbRowUpdatingEvent.cs
- FileInfo.cs
- listitem.cs
- EntityDataSourceChangedEventArgs.cs
- UnsettableComboBox.cs
- TextTreeUndoUnit.cs
- TextViewSelectionProcessor.cs
- ImageMap.cs
- TemplateBamlRecordReader.cs
- OledbConnectionStringbuilder.cs
- DispatchChannelSink.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- TypeDelegator.cs
- XhtmlConformanceSection.cs
- MbpInfo.cs
- __ComObject.cs
- StoreItemCollection.Loader.cs
- QueryUtil.cs
- listitem.cs
- _AutoWebProxyScriptHelper.cs
- ToolStripItemDataObject.cs
- Action.cs
- BitStack.cs
- MergeLocalizationDirectives.cs
- StructuredTypeEmitter.cs
- IOException.cs
- KnownBoxes.cs
- PrinterUnitConvert.cs
- Label.cs
- WebEventTraceProvider.cs
- ViewStateModeByIdAttribute.cs
- SafeNativeMethods.cs
- VariantWrapper.cs
- GenericsInstances.cs
- StringSource.cs
- ProfileParameter.cs
- MultiBindingExpression.cs
- AttributeParameterInfo.cs
- FormViewDeletedEventArgs.cs
- BitmapImage.cs
- Tuple.cs
- EmptyCollection.cs
- NamedObject.cs
- SoapMessage.cs
- InternalPermissions.cs
- WCFBuildProvider.cs
- ContentElementAutomationPeer.cs
- ListViewPagedDataSource.cs
- CodeTypeOfExpression.cs
- MsmqHostedTransportConfiguration.cs
- ListViewItemSelectionChangedEvent.cs
- GeometryHitTestResult.cs
- InteropDesigner.xaml.cs
- CodeDomSerializerException.cs
- ExecutionEngineException.cs
- MaterializeFromAtom.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ByteConverter.cs
- WebScriptMetadataInstanceContextProvider.cs
- AsymmetricKeyExchangeDeformatter.cs
- AcceleratedTokenAuthenticator.cs
- GuidelineCollection.cs
- QueryCacheEntry.cs
- TypeValidationEventArgs.cs
- ViewEventArgs.cs
- util.cs
- RSAPKCS1KeyExchangeFormatter.cs
- GeometryModel3D.cs
- WindowsFormsDesignerOptionService.cs
- PointHitTestResult.cs
- DelegateArgumentValue.cs
- MissingSatelliteAssemblyException.cs
- JulianCalendar.cs
- ClearCollection.cs
- MinMaxParagraphWidth.cs
- BuilderPropertyEntry.cs
- _ScatterGatherBuffers.cs
- CalendarDateRangeChangingEventArgs.cs
- WindowsGraphics2.cs