Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DocumentOrderQuery.cs
- AnnotationElement.cs
- XPathNodeList.cs
- TextureBrush.cs
- ColumnMapCopier.cs
- Schema.cs
- MatrixStack.cs
- InvalidateEvent.cs
- StrongTypingException.cs
- JsonFaultDetail.cs
- FunctionParameter.cs
- PieceNameHelper.cs
- EntityClientCacheKey.cs
- Pens.cs
- BuildProvidersCompiler.cs
- SystemEvents.cs
- StreamReader.cs
- CapabilitiesPattern.cs
- TreeView.cs
- RuleSetReference.cs
- RefreshResponseInfo.cs
- AnchoredBlock.cs
- ListSourceHelper.cs
- EventlogProvider.cs
- HttpValueCollection.cs
- KnownTypeAttribute.cs
- Rules.cs
- TemplateBindingExtension.cs
- XmlSchemaElement.cs
- TextRunProperties.cs
- DataControlButton.cs
- Identity.cs
- HttpRawResponse.cs
- SubclassTypeValidator.cs
- AccessibleObject.cs
- SafeIUnknown.cs
- ImmutableObjectAttribute.cs
- SubMenuStyle.cs
- WindowsNonControl.cs
- HandoffBehavior.cs
- XslNumber.cs
- DesignerUtility.cs
- UdpDiscoveryEndpointElement.cs
- BuildDependencySet.cs
- JavaScriptObjectDeserializer.cs
- Native.cs
- ImpersonateTokenRef.cs
- SqlInternalConnectionSmi.cs
- Hash.cs
- NeutralResourcesLanguageAttribute.cs
- HtmlTableRowCollection.cs
- MenuItemStyleCollection.cs
- GenericTypeParameterBuilder.cs
- CatalogPartChrome.cs
- TimelineGroup.cs
- OverflowException.cs
- LineServicesCallbacks.cs
- EventMap.cs
- ReflectionUtil.cs
- Grammar.cs
- ErrorRuntimeConfig.cs
- XslTransform.cs
- CreateUserWizardStep.cs
- RenameRuleObjectDialog.cs
- WebPartEventArgs.cs
- DataGrid.cs
- MissingSatelliteAssemblyException.cs
- TextEditorThreadLocalStore.cs
- StaticExtension.cs
- ActivationArguments.cs
- DatePicker.cs
- Region.cs
- Pair.cs
- ReaderWriterLockWrapper.cs
- ThreadAbortException.cs
- NumberAction.cs
- DataViewSetting.cs
- GroupItemAutomationPeer.cs
- DivideByZeroException.cs
- ListControlActionList.cs
- XamlStyleSerializer.cs
- HttpContextServiceHost.cs
- XmlAttributeAttribute.cs
- XhtmlBasicSelectionListAdapter.cs
- QilIterator.cs
- WebBrowsableAttribute.cs
- SerialReceived.cs
- EdmProperty.cs
- FrameworkRichTextComposition.cs
- ListControlDataBindingHandler.cs
- ViewStateException.cs
- TrackingProfile.cs
- JavascriptCallbackBehaviorAttribute.cs
- SQLBoolean.cs
- XmlRawWriter.cs
- CategoriesDocument.cs
- TraceHwndHost.cs
- Stylesheet.cs
- DocumentViewer.cs
- WizardStepBase.cs