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
- HashLookup.cs
- CommandEventArgs.cs
- RtfToXamlLexer.cs
- SystemSounds.cs
- Normalization.cs
- InvokeGenerator.cs
- RuntimeHandles.cs
- LicenseException.cs
- ChangesetResponse.cs
- AddInDeploymentState.cs
- WindowsFormsSectionHandler.cs
- EUCJPEncoding.cs
- MustUnderstandSoapException.cs
- PrintSchema.cs
- DefaultSection.cs
- DataSourceHelper.cs
- DeviceSpecific.cs
- StringComparer.cs
- Tokenizer.cs
- DataPagerField.cs
- AppSecurityManager.cs
- ListItemDetailViewAttribute.cs
- DocumentAutomationPeer.cs
- HMACSHA512.cs
- Rotation3DAnimationBase.cs
- WebUtil.cs
- ServicePointManager.cs
- DataRowChangeEvent.cs
- WindowsFormsHelpers.cs
- PersistChildrenAttribute.cs
- ping.cs
- TemplateLookupAction.cs
- ExceptionHandler.cs
- TextParagraph.cs
- Function.cs
- WeakReferenceList.cs
- CompilerResults.cs
- RelatedImageListAttribute.cs
- Native.cs
- QilName.cs
- FlowDocumentPaginator.cs
- EventLogPermissionEntryCollection.cs
- XhtmlBasicFormAdapter.cs
- DataGridState.cs
- MexHttpBindingCollectionElement.cs
- NameValuePair.cs
- Visual3D.cs
- SafeTimerHandle.cs
- XsltException.cs
- ADMembershipProvider.cs
- ValueTypeIndexerReference.cs
- Point3D.cs
- AtomServiceDocumentSerializer.cs
- SqlProfileProvider.cs
- PrintDialog.cs
- IndexerNameAttribute.cs
- MatrixConverter.cs
- XmlSchemaAll.cs
- GPPOINT.cs
- InstanceDataCollection.cs
- NetTcpBindingElement.cs
- Cursors.cs
- MethodImplAttribute.cs
- LabelDesigner.cs
- SByteStorage.cs
- smtppermission.cs
- SymmetricCryptoHandle.cs
- WebPartConnectionCollection.cs
- CultureInfo.cs
- CellPartitioner.cs
- WpfXamlLoader.cs
- GridView.cs
- PasswordBox.cs
- ResolveNextArgumentWorkItem.cs
- DetailsViewModeEventArgs.cs
- CodeMethodReturnStatement.cs
- ColumnMapTranslator.cs
- DispatcherTimer.cs
- DescendentsWalkerBase.cs
- SQLString.cs
- ConstraintStruct.cs
- precedingquery.cs
- DataGridViewSelectedRowCollection.cs
- HybridWebProxyFinder.cs
- SqlDataSourceQueryConverter.cs
- PrintEvent.cs
- TextServicesLoader.cs
- BinaryMethodMessage.cs
- SQLMoney.cs
- WebPartDescription.cs
- nulltextnavigator.cs
- StrongTypingException.cs
- ActivityTypeResolver.xaml.cs
- XmlNullResolver.cs
- MailBnfHelper.cs
- RowBinding.cs
- GatewayDefinition.cs
- HtmlControl.cs
- RectangleF.cs
- BindingNavigator.cs