Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DesignerCategoryAttribute.cs
- KeyBinding.cs
- DropShadowBitmapEffect.cs
- StdValidatorsAndConverters.cs
- WindowsScrollBarBits.cs
- GenericEnumConverter.cs
- RowsCopiedEventArgs.cs
- DataServiceQueryOfT.cs
- RectangleGeometry.cs
- RegistrySecurity.cs
- XmlLanguage.cs
- ClassicBorderDecorator.cs
- BaseWebProxyFinder.cs
- TdsParserStateObject.cs
- Stroke2.cs
- ExpressionBinding.cs
- DataFieldEditor.cs
- webproxy.cs
- ToolStripContainer.cs
- XpsStructure.cs
- FlowDocumentReader.cs
- BuildManager.cs
- ViewGenerator.cs
- AutoSizeToolBoxItem.cs
- XmlConvert.cs
- UserControlDesigner.cs
- EncodingFallbackAwareXmlTextWriter.cs
- HasCopySemanticsAttribute.cs
- ListViewUpdateEventArgs.cs
- ErrorWrapper.cs
- Material.cs
- ButtonColumn.cs
- KeyTimeConverter.cs
- ServicePointManager.cs
- Win32.cs
- AssemblyHash.cs
- RegisteredDisposeScript.cs
- XLinq.cs
- CngKey.cs
- XamlTypeMapper.cs
- BulletDecorator.cs
- TransformedBitmap.cs
- WrappedIUnknown.cs
- DataColumnPropertyDescriptor.cs
- AppLevelCompilationSectionCache.cs
- XmlnsCache.cs
- DynamicResourceExtensionConverter.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ToolBarTray.cs
- ApplicationDirectory.cs
- Content.cs
- EdgeModeValidation.cs
- sqlinternaltransaction.cs
- LocationSectionRecord.cs
- ClockGroup.cs
- EntryPointNotFoundException.cs
- MarkupObject.cs
- InsufficientMemoryException.cs
- AnyAllSearchOperator.cs
- PenThreadWorker.cs
- RegistryConfigurationProvider.cs
- ADMembershipUser.cs
- TemplateControl.cs
- HighlightComponent.cs
- WindowsListViewItemCheckBox.cs
- ImportDesigner.xaml.cs
- RedistVersionInfo.cs
- HandlerWithFactory.cs
- SizeValueSerializer.cs
- ArgIterator.cs
- HtmlElement.cs
- GenericTextProperties.cs
- LayoutTableCell.cs
- EventBuilder.cs
- ListBindingHelper.cs
- MsmqHostedTransportConfiguration.cs
- _BasicClient.cs
- TraceHwndHost.cs
- Faults.cs
- VisualTarget.cs
- MobileUserControl.cs
- WhitespaceRule.cs
- CroppedBitmap.cs
- XpsFixedPageReaderWriter.cs
- SymmetricKeyWrap.cs
- XpsS0ValidatingLoader.cs
- InertiaExpansionBehavior.cs
- SchemaTableOptionalColumn.cs
- MdiWindowListItemConverter.cs
- IOThreadScheduler.cs
- InstanceCollisionException.cs
- odbcmetadatacolumnnames.cs
- ToolStripDropDown.cs
- MouseCaptureWithinProperty.cs
- CompilerState.cs
- CellTreeNode.cs
- JournalEntryStack.cs
- BinHexEncoder.cs
- XmlDeclaration.cs
- FullTextLine.cs