Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / ManagedLibraries / Remoting / Services / RemotingService.cs / 1305376 / RemotingService.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Runtime.Remoting.Services { using System.Diagnostics; using System.Web; using System.ComponentModel; using System.Web.SessionState; using System.Security.Principal; using System.Runtime.Remoting.Channels; public class RemotingService : Component { public HttpApplicationState Application { get { return Context.Application; } } public HttpContext Context { get { HttpContext context = HttpContext.Current; if (context == null) throw new RemotingException(CoreChannel.GetResourceString("Remoting_HttpContextNotAvailable")); return context; } } public HttpSessionState Session { get { return Context.Session; } } public HttpServerUtility Server { get { return Context.Server; } } public IPrincipal User { get { return Context.User; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Runtime.Remoting.Services { using System.Diagnostics; using System.Web; using System.ComponentModel; using System.Web.SessionState; using System.Security.Principal; using System.Runtime.Remoting.Channels; public class RemotingService : Component { public HttpApplicationState Application { get { return Context.Application; } } public HttpContext Context { get { HttpContext context = HttpContext.Current; if (context == null) throw new RemotingException(CoreChannel.GetResourceString("Remoting_HttpContextNotAvailable")); return context; } } public HttpSessionState Session { get { return Context.Session; } } public HttpServerUtility Server { get { return Context.Server; } } public IPrincipal User { get { return Context.User; } } } } // 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
- DataGridViewCheckBoxColumn.cs
- IisTraceListener.cs
- SqlXml.cs
- Material.cs
- SettingsProviderCollection.cs
- MarkupProperty.cs
- Paragraph.cs
- HandledMouseEvent.cs
- ConfigurationProperty.cs
- SmiContext.cs
- AncestorChangedEventArgs.cs
- typedescriptorpermissionattribute.cs
- MachineKey.cs
- DataGridViewSortCompareEventArgs.cs
- BamlMapTable.cs
- EditorZone.cs
- XPathDescendantIterator.cs
- BinaryMessageEncoder.cs
- DbConnectionPoolGroup.cs
- Int16AnimationBase.cs
- CollectionsUtil.cs
- ListManagerBindingsCollection.cs
- ControlValuePropertyAttribute.cs
- HttpHandlerAction.cs
- EncoderNLS.cs
- ZipIOLocalFileHeader.cs
- SecurityChannelListener.cs
- CriticalHandle.cs
- CodeDirectoryCompiler.cs
- StateMachineTimers.cs
- DataGridDesigner.cs
- SimpleTypeResolver.cs
- CommandEventArgs.cs
- NameValueConfigurationCollection.cs
- Pen.cs
- LightweightCodeGenerator.cs
- BinHexDecoder.cs
- GridViewCellAutomationPeer.cs
- SplineKeyFrames.cs
- ValidationHelper.cs
- PositiveTimeSpanValidator.cs
- PropertyChangeTracker.cs
- FixedTextSelectionProcessor.cs
- ScriptManager.cs
- SafeLibraryHandle.cs
- TemplateColumn.cs
- x509utils.cs
- ConstNode.cs
- UnsafeNativeMethods.cs
- XmlSchemaExternal.cs
- CharKeyFrameCollection.cs
- CopyAttributesAction.cs
- ProfileSettings.cs
- DrawListViewItemEventArgs.cs
- Comparer.cs
- EditorPartChrome.cs
- WebPartActionVerb.cs
- MetadataUtilsSmi.cs
- HttpCapabilitiesEvaluator.cs
- CheckoutException.cs
- GlobalItem.cs
- StringConcat.cs
- DataGridViewSortCompareEventArgs.cs
- SafeLibraryHandle.cs
- IndependentAnimationStorage.cs
- Duration.cs
- TextReader.cs
- ResourceDictionary.cs
- PropertyPathWorker.cs
- OdbcEnvironmentHandle.cs
- NameTable.cs
- ProfileInfo.cs
- EntitySetBase.cs
- MethodExecutor.cs
- RegisteredScript.cs
- XmlSerializerNamespaces.cs
- TextRenderer.cs
- RectAnimationBase.cs
- DataListItemCollection.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- FlowDocumentReaderAutomationPeer.cs
- RepeaterItem.cs
- ValidatorCollection.cs
- nulltextcontainer.cs
- IIS7WorkerRequest.cs
- Function.cs
- DataGridRowsPresenter.cs
- XmlName.cs
- _WinHttpWebProxyDataBuilder.cs
- Light.cs
- EnumConverter.cs
- StringKeyFrameCollection.cs
- SqlBuilder.cs
- DataGridViewLinkCell.cs
- ProcessModelInfo.cs
- DragEvent.cs
- UnionCqlBlock.cs
- TimeStampChecker.cs
- ParserExtension.cs
- DetailsViewPagerRow.cs