Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SmtpCommands.cs
- VisualBasicSettingsHandler.cs
- IisTraceWebEventProvider.cs
- StackOverflowException.cs
- basecomparevalidator.cs
- DesignerMetadata.cs
- InfoCardHelper.cs
- ValuePatternIdentifiers.cs
- UpdateEventArgs.cs
- SqlConnectionHelper.cs
- DataRecordObjectView.cs
- CqlWriter.cs
- DataProtection.cs
- RegexStringValidator.cs
- ComponentSerializationService.cs
- RtfFormatStack.cs
- Marshal.cs
- UpdateExpressionVisitor.cs
- XmlMessageFormatter.cs
- TextRangeSerialization.cs
- _FtpDataStream.cs
- TraceEventCache.cs
- ErrorHandlerModule.cs
- ExceptionRoutedEventArgs.cs
- HtmlSelect.cs
- KerberosSecurityTokenAuthenticator.cs
- CacheMemory.cs
- TextRangeEditLists.cs
- OleDbWrapper.cs
- XmlWriterTraceListener.cs
- ProfileEventArgs.cs
- TextBlockAutomationPeer.cs
- DropDownButton.cs
- DbConnectionPoolIdentity.cs
- OperandQuery.cs
- BinaryUtilClasses.cs
- XmlChildNodes.cs
- MonitorWrapper.cs
- TreeNode.cs
- TypeNameConverter.cs
- SelectionRange.cs
- ConnectionPoolManager.cs
- PathGeometry.cs
- WCFBuildProvider.cs
- ServiceAuthorizationBehavior.cs
- HttpAsyncResult.cs
- SpecialFolderEnumConverter.cs
- OraclePermission.cs
- HMACSHA512.cs
- XamlReaderHelper.cs
- VersionedStream.cs
- HttpProfileGroupBase.cs
- DependencyPropertyKind.cs
- SqlNotificationRequest.cs
- XmlHelper.cs
- XmlQueryTypeFactory.cs
- WindowsEditBoxRange.cs
- CompressionTransform.cs
- LogEntrySerialization.cs
- StateRuntime.cs
- SwitchAttribute.cs
- TransformConverter.cs
- Bold.cs
- StrokeCollection.cs
- InternalPermissions.cs
- PathGeometry.cs
- WebPartDisplayMode.cs
- ButtonBase.cs
- StylusButtonCollection.cs
- AspNetCompatibilityRequirementsAttribute.cs
- HashAlgorithm.cs
- Int32Collection.cs
- HwndStylusInputProvider.cs
- _OverlappedAsyncResult.cs
- UInt16.cs
- SchemaImporterExtensionElement.cs
- AttributeEmitter.cs
- DoubleAnimationUsingKeyFrames.cs
- ThousandthOfEmRealDoubles.cs
- WebFaultException.cs
- PublisherIdentityPermission.cs
- OverlappedAsyncResult.cs
- IResourceProvider.cs
- SqlRecordBuffer.cs
- DataServiceContext.cs
- AllMembershipCondition.cs
- StringSorter.cs
- _UncName.cs
- ProxyAttribute.cs
- InputLanguageManager.cs
- AsyncResult.cs
- LocatorBase.cs
- SqlVersion.cs
- WCFModelStrings.Designer.cs
- VectorCollectionConverter.cs
- InvalidPrinterException.cs
- Common.cs
- SpecialFolderEnumConverter.cs
- SamlAuthorizationDecisionStatement.cs
- SystemIPv6InterfaceProperties.cs