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
- BitmapEffectGroup.cs
- IImplicitResourceProvider.cs
- HttpRawResponse.cs
- HtmlImage.cs
- RawKeyboardInputReport.cs
- ServiceEndpointAssociationProvider.cs
- DataGridBoolColumn.cs
- XmlChildNodes.cs
- SchemaLookupTable.cs
- QualifiedCellIdBoolean.cs
- CodeSnippetStatement.cs
- CounterSample.cs
- TimeManager.cs
- AuditLevel.cs
- Rect3DValueSerializer.cs
- EnumValAlphaComparer.cs
- TagNameToTypeMapper.cs
- X509Extension.cs
- ToolBarPanel.cs
- ConnectionStringsSection.cs
- InputScopeConverter.cs
- ProfileParameter.cs
- _NtlmClient.cs
- RecordManager.cs
- ItemContainerGenerator.cs
- SmtpNetworkElement.cs
- WindowsTitleBar.cs
- UIPermission.cs
- SecurityTimestamp.cs
- XPathNodeInfoAtom.cs
- IdentifierCollection.cs
- RuntimeArgument.cs
- _AutoWebProxyScriptWrapper.cs
- PipelineModuleStepContainer.cs
- NetMsmqBindingCollectionElement.cs
- DoubleIndependentAnimationStorage.cs
- SplitContainer.cs
- WebPartZoneCollection.cs
- Point3DIndependentAnimationStorage.cs
- MethodImplAttribute.cs
- AffineTransform3D.cs
- TemplateColumn.cs
- _ShellExpression.cs
- DbParameterCollectionHelper.cs
- TypeBrowser.xaml.cs
- EncoderNLS.cs
- OleDbRowUpdatedEvent.cs
- ShaderEffect.cs
- StringReader.cs
- DesignerTextViewAdapter.cs
- ConfigurationStrings.cs
- RtfFormatStack.cs
- EditCommandColumn.cs
- ConsoleTraceListener.cs
- WinCategoryAttribute.cs
- DataControlFieldCell.cs
- ResourceSet.cs
- InputLanguageSource.cs
- FieldMetadata.cs
- ReflectionUtil.cs
- TextEditorThreadLocalStore.cs
- TreePrinter.cs
- SqlStream.cs
- SafeNativeMethods.cs
- AppSettings.cs
- LogSwitch.cs
- SubclassTypeValidator.cs
- VectorAnimation.cs
- SqlDataSourceCache.cs
- SaveRecipientRequest.cs
- HierarchicalDataSourceDesigner.cs
- RequestCacheEntry.cs
- NotFiniteNumberException.cs
- BuilderInfo.cs
- TextRenderer.cs
- DrawingVisual.cs
- WebPartActionVerb.cs
- SerializableAuthorizationContext.cs
- DetailsViewRow.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- RightsManagementSuppressedStream.cs
- SqlBooleanizer.cs
- FragmentQueryKB.cs
- NamespaceCollection.cs
- WindowsListViewSubItem.cs
- WebScriptServiceHostFactory.cs
- TreeView.cs
- HyperlinkAutomationPeer.cs
- MetabaseReader.cs
- DESCryptoServiceProvider.cs
- RenderDataDrawingContext.cs
- Mouse.cs
- GridViewUpdatedEventArgs.cs
- MessageLoggingFilterTraceRecord.cs
- activationcontext.cs
- ExecutionProperties.cs
- ErrorProvider.cs
- UnsafeNativeMethods.cs
- PersonalizablePropertyEntry.cs
- SingleAnimation.cs