Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- RegexCompilationInfo.cs
- ThemeableAttribute.cs
- ObjectRef.cs
- QueryableDataSource.cs
- UrlUtility.cs
- NotImplementedException.cs
- ConfigurationSectionHelper.cs
- BlobPersonalizationState.cs
- SupportsEventValidationAttribute.cs
- SqlBulkCopyColumnMappingCollection.cs
- ProxyHwnd.cs
- IPipelineRuntime.cs
- VectorCollectionConverter.cs
- Rule.cs
- SQLSingle.cs
- ProcessHostMapPath.cs
- ConditionValidator.cs
- PtsHost.cs
- ShapingEngine.cs
- EntityAdapter.cs
- ACE.cs
- SqlTransaction.cs
- ElementInit.cs
- _AcceptOverlappedAsyncResult.cs
- MenuItem.cs
- TextureBrush.cs
- SapiRecoContext.cs
- WindowsAltTab.cs
- ExecutedRoutedEventArgs.cs
- BinaryObjectReader.cs
- PageAsyncTaskManager.cs
- BitmapCodecInfo.cs
- DesignerWithHeader.cs
- PackWebRequest.cs
- BaseParaClient.cs
- PersonalizationEntry.cs
- FontFamilyConverter.cs
- PartitionerStatic.cs
- ImageIndexConverter.cs
- TextBox.cs
- TransactionTraceIdentifier.cs
- ToolStrip.cs
- UpdateManifestForBrowserApplication.cs
- EncryptedData.cs
- NumberEdit.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- Currency.cs
- DeviceContext.cs
- TrackingAnnotationCollection.cs
- StringConverter.cs
- AuthenticationService.cs
- ExtenderHelpers.cs
- TypeHelper.cs
- IList.cs
- XmlSchemaAnnotation.cs
- StorageComplexPropertyMapping.cs
- TypedElement.cs
- FieldToken.cs
- FontClient.cs
- AdjustableArrowCap.cs
- PropertyMetadata.cs
- UserControlCodeDomTreeGenerator.cs
- shaperfactory.cs
- IgnoreSectionHandler.cs
- WpfXamlLoader.cs
- OperationInvokerBehavior.cs
- _OSSOCK.cs
- MergePropertyDescriptor.cs
- HttpWriter.cs
- ScrollItemPattern.cs
- OptionalColumn.cs
- Image.cs
- CollectionsUtil.cs
- CatalogZone.cs
- UnsafeNativeMethods.cs
- UnsafeNativeMethods.cs
- PermissionAttributes.cs
- DelegatingTypeDescriptionProvider.cs
- EncodingStreamWrapper.cs
- Visual3DCollection.cs
- TcpHostedTransportConfiguration.cs
- RoutedEvent.cs
- ExpressionNode.cs
- WebPartConnectionsConnectVerb.cs
- BrowserInteropHelper.cs
- SegmentInfo.cs
- FontNamesConverter.cs
- DockAndAnchorLayout.cs
- IndexedGlyphRun.cs
- TextTreeDeleteContentUndoUnit.cs
- SmiTypedGetterSetter.cs
- StringInfo.cs
- OdbcInfoMessageEvent.cs
- ThousandthOfEmRealPoints.cs
- _AuthenticationState.cs
- _NegoStream.cs
- ResourceReferenceExpression.cs
- DataGridViewButtonCell.cs
- UpdateEventArgs.cs
- IndexerNameAttribute.cs