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
- Ticks.cs
- AdjustableArrowCap.cs
- ComplexBindingPropertiesAttribute.cs
- ApplicationInfo.cs
- InvokeBinder.cs
- BinaryWriter.cs
- OneWayBindingElement.cs
- WindowsToolbar.cs
- SqlTransaction.cs
- ToolStripSplitStackLayout.cs
- ResourceContainer.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- PeerNameResolver.cs
- COAUTHIDENTITY.cs
- AsymmetricAlgorithm.cs
- ListBoxChrome.cs
- ExpressionBinding.cs
- SoapObjectReader.cs
- WebPartDisplayModeEventArgs.cs
- System.Data.OracleClient_BID.cs
- WebEventCodes.cs
- DataControlField.cs
- AuthenticationService.cs
- UIElementHelper.cs
- DateRangeEvent.cs
- SimpleApplicationHost.cs
- RelationshipEndMember.cs
- ValidationPropertyAttribute.cs
- RightsManagementInformation.cs
- FixedSOMGroup.cs
- HtmlHistory.cs
- XmlNodeReader.cs
- CompressedStack.cs
- RowsCopiedEventArgs.cs
- CharacterMetrics.cs
- HashAlgorithm.cs
- FormViewUpdatedEventArgs.cs
- WebPartHeaderCloseVerb.cs
- DrawingAttributeSerializer.cs
- SelectorItemAutomationPeer.cs
- ISAPIApplicationHost.cs
- CodeTypeMember.cs
- ResourceBinder.cs
- BamlLocalizableResource.cs
- EndpointAddressMessageFilter.cs
- RawStylusInputReport.cs
- CLSCompliantAttribute.cs
- ObjectList.cs
- TableLayoutPanel.cs
- FunctionQuery.cs
- ActivityInstanceMap.cs
- FontStyleConverter.cs
- BinaryNegotiation.cs
- SafeNativeMethods.cs
- XmlAttributes.cs
- ProtocolsConfigurationHandler.cs
- XmlSchemaComplexContentExtension.cs
- CultureTableRecord.cs
- PathParser.cs
- SafeSecurityHandles.cs
- LoadWorkflowByKeyAsyncResult.cs
- HandlerFactoryWrapper.cs
- SecurityManager.cs
- Table.cs
- SamlNameIdentifierClaimResource.cs
- Pen.cs
- AttributeCollection.cs
- ProxyFragment.cs
- MarshalDirectiveException.cs
- StatusBarItemAutomationPeer.cs
- ModulesEntry.cs
- CodeDelegateInvokeExpression.cs
- WindowsGraphicsCacheManager.cs
- PerformanceCountersElement.cs
- Double.cs
- WindowsComboBox.cs
- Types.cs
- BufferedWebEventProvider.cs
- ProcessHostMapPath.cs
- OrderedParallelQuery.cs
- SafeProcessHandle.cs
- CachedCompositeFamily.cs
- MsmqIntegrationChannelFactory.cs
- SecurityTokenSpecification.cs
- ErasingStroke.cs
- CharacterMetrics.cs
- ToolboxItemFilterAttribute.cs
- ResourceWriter.cs
- UserPersonalizationStateInfo.cs
- XmlJsonReader.cs
- TemplateBindingExtension.cs
- JapaneseCalendar.cs
- ZoneIdentityPermission.cs
- SafeEventLogWriteHandle.cs
- ConsumerConnectionPoint.cs
- DataGridViewCellEventArgs.cs
- UIElementPropertyUndoUnit.cs
- DrawingVisual.cs
- BlockCollection.cs
- Camera.cs