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
- SqlDependencyUtils.cs
- ModelFactory.cs
- RunClient.cs
- StringBlob.cs
- DataGridColumnReorderingEventArgs.cs
- XsdBuilder.cs
- GatewayDefinition.cs
- SyndicationDeserializer.cs
- TrackBarRenderer.cs
- StringValueSerializer.cs
- DateTimeSerializationSection.cs
- SizeChangedEventArgs.cs
- ThicknessAnimationUsingKeyFrames.cs
- ToolboxSnapDragDropEventArgs.cs
- Int32Animation.cs
- ToolStripItemGlyph.cs
- FrameSecurityDescriptor.cs
- CodeVariableDeclarationStatement.cs
- FixedTextView.cs
- HtmlElementErrorEventArgs.cs
- ASCIIEncoding.cs
- EnumerableRowCollection.cs
- NamespaceQuery.cs
- SQLMembershipProvider.cs
- NotImplementedException.cs
- SaveFileDialog.cs
- WarningException.cs
- UriWriter.cs
- MimeTypeMapper.cs
- VectorAnimationUsingKeyFrames.cs
- Grant.cs
- DependencyPropertyAttribute.cs
- ButtonStandardAdapter.cs
- SettingsSection.cs
- SamlAttributeStatement.cs
- DefaultPropertiesToSend.cs
- MessageQueuePermissionEntry.cs
- ExpressionBuilderContext.cs
- DictationGrammar.cs
- StreamGeometry.cs
- Base64Stream.cs
- MemberNameValidator.cs
- CellTreeNode.cs
- ListViewDesigner.cs
- _Rfc2616CacheValidators.cs
- DataGridAddNewRow.cs
- SvcMapFile.cs
- XdrBuilder.cs
- FormatException.cs
- ImageUrlEditor.cs
- WmlPanelAdapter.cs
- HttpHeaderCollection.cs
- SizeLimitedCache.cs
- CompareInfo.cs
- ObjectViewQueryResultData.cs
- BindingList.cs
- CroppedBitmap.cs
- List.cs
- EventSinkHelperWriter.cs
- TypeConverterAttribute.cs
- FrameworkTemplate.cs
- StaticFileHandler.cs
- CssClassPropertyAttribute.cs
- ViewLoader.cs
- RegistrySecurity.cs
- Validator.cs
- InternalControlCollection.cs
- FamilyMapCollection.cs
- NavigationFailedEventArgs.cs
- Expr.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- Pointer.cs
- NullableConverter.cs
- DllHostInitializer.cs
- NamespaceCollection.cs
- XmlWrappingReader.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- Rectangle.cs
- SchemaElementDecl.cs
- SettingsPropertyNotFoundException.cs
- HuffCodec.cs
- DataBoundLiteralControl.cs
- HostedHttpContext.cs
- Span.cs
- IpcPort.cs
- FixedNode.cs
- OrderedParallelQuery.cs
- ControlPropertyNameConverter.cs
- ConfigurationManagerInternal.cs
- InheritanceContextHelper.cs
- GZipStream.cs
- FontNamesConverter.cs
- ListBoxItem.cs
- ButtonStandardAdapter.cs
- BufferBuilder.cs
- SpinWait.cs
- basenumberconverter.cs
- ZipFileInfo.cs
- BinaryParser.cs
- SpecialNameAttribute.cs