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
- EntryPointNotFoundException.cs
- SpStreamWrapper.cs
- MachineSettingsSection.cs
- MenuItem.cs
- UrlMappingsSection.cs
- IdentityNotMappedException.cs
- MaskedTextBoxDesignerActionList.cs
- Soap.cs
- ByteStorage.cs
- HierarchicalDataBoundControlAdapter.cs
- SponsorHelper.cs
- PauseStoryboard.cs
- HtmlElementCollection.cs
- LoginView.cs
- ToolStripSplitButton.cs
- DelayedRegex.cs
- SubpageParaClient.cs
- DataControlFieldCell.cs
- RepeatButton.cs
- DataTablePropertyDescriptor.cs
- SymbolType.cs
- HandledEventArgs.cs
- QEncodedStream.cs
- Rectangle.cs
- ConnectionManagementElement.cs
- BaseTemplateCodeDomTreeGenerator.cs
- MachineKeyConverter.cs
- DurableInstancingOptions.cs
- TraceUtility.cs
- DigitalSignatureProvider.cs
- SchemaNamespaceManager.cs
- XamlBrushSerializer.cs
- ToolStripComboBox.cs
- XPathSingletonIterator.cs
- UInt64Converter.cs
- LoginDesigner.cs
- StorageComplexPropertyMapping.cs
- SiteMapNode.cs
- Page.cs
- DispatchWrapper.cs
- OleDbCommand.cs
- SystemTcpConnection.cs
- SynthesizerStateChangedEventArgs.cs
- UrlPropertyAttribute.cs
- LowerCaseStringConverter.cs
- TypeFieldSchema.cs
- ItemsChangedEventArgs.cs
- AtomMaterializer.cs
- ISessionStateStore.cs
- RelationshipEndMember.cs
- BlobPersonalizationState.cs
- TypeResolver.cs
- LogLogRecordEnumerator.cs
- MethodBuilder.cs
- TdsParserHelperClasses.cs
- SiteOfOriginPart.cs
- WindowsRebar.cs
- BinaryMethodMessage.cs
- Table.cs
- ReadOnlyHierarchicalDataSource.cs
- ProtectedConfigurationSection.cs
- RemoveFromCollection.cs
- ResourceManagerWrapper.cs
- SemanticAnalyzer.cs
- DataGridCellItemAutomationPeer.cs
- OleServicesContext.cs
- HatchBrush.cs
- SuppressMergeCheckAttribute.cs
- ManualResetEvent.cs
- ServiceThrottlingElement.cs
- MediaEntryAttribute.cs
- TdsParserSessionPool.cs
- EventDescriptorCollection.cs
- DecimalFormatter.cs
- PageParser.cs
- BridgeDataRecord.cs
- HttpApplicationStateBase.cs
- SqlDataAdapter.cs
- SHA256.cs
- Brush.cs
- LoginName.cs
- InfiniteIntConverter.cs
- Stroke.cs
- Reference.cs
- Point.cs
- WindowsFormsLinkLabel.cs
- DataControlLinkButton.cs
- DataGridComboBoxColumn.cs
- WebBaseEventKeyComparer.cs
- MDIWindowDialog.cs
- FunctionNode.cs
- CipherData.cs
- SqlDataRecord.cs
- PermissionAttributes.cs
- MachineKeyConverter.cs
- MonthChangedEventArgs.cs
- future.cs
- PolyQuadraticBezierSegment.cs
- ISAPIApplicationHost.cs
- SqlServices.cs