Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Hosting / ContextBase.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StronglyTypedResourceBuilder.cs
- IndependentAnimationStorage.cs
- _ConnectionGroup.cs
- CorrelationToken.cs
- ISessionStateStore.cs
- CuspData.cs
- SafeHandles.cs
- HtmlHead.cs
- AuthenticationModulesSection.cs
- CollectionViewGroupRoot.cs
- CommandConverter.cs
- ControlPropertyNameConverter.cs
- RevocationPoint.cs
- Int32Collection.cs
- RectAnimationClockResource.cs
- CodeNamespaceCollection.cs
- EditorAttribute.cs
- ILGen.cs
- Win32Native.cs
- ResourceExpressionBuilder.cs
- SafeFindHandle.cs
- MobileFormsAuthentication.cs
- ContractMapping.cs
- MemoryStream.cs
- WebServiceEndpoint.cs
- AppDomainManager.cs
- LinkUtilities.cs
- BitStream.cs
- CopyNodeSetAction.cs
- SqlUserDefinedAggregateAttribute.cs
- RegexRunner.cs
- IncrementalCompileAnalyzer.cs
- MatcherBuilder.cs
- CalendarBlackoutDatesCollection.cs
- BaseValidator.cs
- RewritingValidator.cs
- TextParagraphView.cs
- XmlSignatureManifest.cs
- ObjectDataSourceDisposingEventArgs.cs
- EventMap.cs
- ZoneLinkButton.cs
- RuntimeHandles.cs
- EdmToObjectNamespaceMap.cs
- HttpWebResponse.cs
- BooleanSwitch.cs
- ListControlDesigner.cs
- Part.cs
- Timer.cs
- ContextMarshalException.cs
- ReachFixedPageSerializerAsync.cs
- ReadOnlyTernaryTree.cs
- ImageFormat.cs
- FontEditor.cs
- Light.cs
- EntityProxyTypeInfo.cs
- NavigatingCancelEventArgs.cs
- BasicExpandProvider.cs
- DrawingContext.cs
- SByte.cs
- ResourcesBuildProvider.cs
- KerberosSecurityTokenProvider.cs
- UpdatePanelTriggerCollection.cs
- ProxyWebPartManager.cs
- ModuleBuilder.cs
- RenamedEventArgs.cs
- SymmetricSecurityProtocolFactory.cs
- FeatureSupport.cs
- WebRequest.cs
- Pick.cs
- DataGrid.cs
- BooleanSwitch.cs
- BindingExpressionUncommonField.cs
- MediaEntryAttribute.cs
- SHA512.cs
- FieldMetadata.cs
- IisTraceWebEventProvider.cs
- DataGridCellsPanel.cs
- TdsRecordBufferSetter.cs
- Parser.cs
- LockedBorderGlyph.cs
- StateMachineHelpers.cs
- ObjectToIdCache.cs
- GridViewRow.cs
- SmtpNegotiateAuthenticationModule.cs
- ListBindingHelper.cs
- FormattedTextSymbols.cs
- Registry.cs
- IpcClientChannel.cs
- EntityParameterCollection.cs
- NameNode.cs
- ThousandthOfEmRealDoubles.cs
- CommonGetThemePartSize.cs
- diagnosticsswitches.cs
- XPathSelectionIterator.cs
- CryptoApi.cs
- WeakRefEnumerator.cs
- ProjectionRewriter.cs
- WeakReadOnlyCollection.cs
- WindowsAltTab.cs
- ITextView.cs