Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Hosting / ContextBase.cs / 1 / ContextBase.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Hosting {
using System.Web;
using System.Web.Configuration;
using System.Runtime.Remoting.Messaging;
using System.Security.Permissions;
internal class ContextBase {
internal static Object Current {
get {
return CallContext.HostContext;
}
[SecurityPermission(SecurityAction.Demand, Unrestricted = true)]
set {
CallContext.HostContext = value;
}
}
// static methods
internal static Object SwitchContext(Object newContext) {
Object oldContext = CallContext.HostContext;
if (oldContext != newContext)
CallContext.HostContext = newContext;
return oldContext;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Hosting {
using System.Web;
using System.Web.Configuration;
using System.Runtime.Remoting.Messaging;
using System.Security.Permissions;
internal class ContextBase {
internal static Object Current {
get {
return CallContext.HostContext;
}
[SecurityPermission(SecurityAction.Demand, Unrestricted = true)]
set {
CallContext.HostContext = value;
}
}
// static methods
internal static Object SwitchContext(Object newContext) {
Object oldContext = CallContext.HostContext;
if (oldContext != newContext)
CallContext.HostContext = newContext;
return oldContext;
}
}
}
// 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
- CodeGroup.cs
- VoiceSynthesis.cs
- SqlRetyper.cs
- ServiceOperationParameter.cs
- RTTrackingProfile.cs
- COM2FontConverter.cs
- TimerElapsedEvenArgs.cs
- PrintDocument.cs
- TextBoxView.cs
- DrawingGroup.cs
- LogEntryUtils.cs
- NonBatchDirectoryCompiler.cs
- GZipDecoder.cs
- SignatureDescription.cs
- ReadOnlyCollectionBase.cs
- XhtmlBasicObjectListAdapter.cs
- DBCSCodePageEncoding.cs
- OSFeature.cs
- DayRenderEvent.cs
- FakeModelItemImpl.cs
- ChannelSinkStacks.cs
- ClientTargetSection.cs
- TraceFilter.cs
- ConvertersCollection.cs
- CodeConstructor.cs
- InheritanceRules.cs
- CodeAccessSecurityEngine.cs
- HwndStylusInputProvider.cs
- MemberRelationshipService.cs
- StringCollection.cs
- DataGridViewToolTip.cs
- ipaddressinformationcollection.cs
- ImportFileRequest.cs
- DataKey.cs
- WebPartEditorCancelVerb.cs
- Soap11ServerProtocol.cs
- LineVisual.cs
- WindowsTokenRoleProvider.cs
- MexHttpsBindingElement.cs
- SelectionChangedEventArgs.cs
- ServicesUtilities.cs
- BoundPropertyEntry.cs
- DbConvert.cs
- InputManager.cs
- RegexFCD.cs
- TypeBuilderInstantiation.cs
- SettingsBindableAttribute.cs
- UIElementParagraph.cs
- AsyncPostBackErrorEventArgs.cs
- SiteMapNodeItem.cs
- StrongName.cs
- EntityClientCacheEntry.cs
- SoapTypeAttribute.cs
- SqlDataReaderSmi.cs
- RepeaterItem.cs
- Pair.cs
- XmlEntity.cs
- ProcessingInstructionAction.cs
- AttributeEmitter.cs
- RegionData.cs
- IgnoreSectionHandler.cs
- EventLogTraceListener.cs
- PixelFormat.cs
- CheckBoxPopupAdapter.cs
- UIElement.cs
- IIS7WorkerRequest.cs
- ReadContentAsBinaryHelper.cs
- MatcherBuilder.cs
- EncoderReplacementFallback.cs
- LightweightCodeGenerator.cs
- tooltip.cs
- DbQueryCommandTree.cs
- AccessDataSourceDesigner.cs
- _ChunkParse.cs
- OracleParameter.cs
- safemediahandle.cs
- SymDocumentType.cs
- AppDomainEvidenceFactory.cs
- MatrixConverter.cs
- RequestBringIntoViewEventArgs.cs
- RowUpdatedEventArgs.cs
- DocumentsTrace.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- StreamBodyWriter.cs
- ComboBox.cs
- MdiWindowListStrip.cs
- XmlBinaryReader.cs
- DeclarativeConditionsCollection.cs
- PageAsyncTask.cs
- LineMetrics.cs
- SessionPageStateSection.cs
- DataGridViewRowsRemovedEventArgs.cs
- BuildProvider.cs
- CodeCatchClauseCollection.cs
- CodeSnippetCompileUnit.cs
- MostlySingletonList.cs
- DetailsView.cs
- RelationshipFixer.cs
- GeometryModel3D.cs
- SafePEFileHandle.cs