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
- BrowsableAttribute.cs
- TopClause.cs
- CustomAttribute.cs
- DataConnectionHelper.cs
- SerializationBinder.cs
- TemplateKeyConverter.cs
- AuthorizationSection.cs
- WSHttpBindingCollectionElement.cs
- DuplicateWaitObjectException.cs
- WhitespaceRule.cs
- SimpleApplicationHost.cs
- CodeExpressionCollection.cs
- XmlSchemaCollection.cs
- CapabilitiesAssignment.cs
- GridViewUpdatedEventArgs.cs
- ReferencedAssemblyResolver.cs
- XmlWellformedWriter.cs
- CaseStatementSlot.cs
- RemotingAttributes.cs
- RoleBoolean.cs
- ByteAnimationUsingKeyFrames.cs
- SelectionItemProviderWrapper.cs
- TextChange.cs
- SqlUtils.cs
- UserValidatedEventArgs.cs
- BooleanSwitch.cs
- InfiniteIntConverter.cs
- GregorianCalendarHelper.cs
- ByeMessageCD1.cs
- ManipulationStartedEventArgs.cs
- XmlSortKey.cs
- RTLAwareMessageBox.cs
- SecurityRuntime.cs
- TextServicesContext.cs
- XamlBuildTaskServices.cs
- MeasurementDCInfo.cs
- OracleParameter.cs
- DataColumnMapping.cs
- SplitterPanel.cs
- TextChangedEventArgs.cs
- DocumentPageViewAutomationPeer.cs
- HelpPage.cs
- FixedSOMTableRow.cs
- PathFigureCollection.cs
- RowSpanVector.cs
- KnownTypesHelper.cs
- ResourceDisplayNameAttribute.cs
- DoubleLinkListEnumerator.cs
- XPathExpr.cs
- DebugControllerThread.cs
- AbsoluteQuery.cs
- TreeViewEvent.cs
- ExpressionVisitor.cs
- Frame.cs
- FrameAutomationPeer.cs
- XPathSelectionIterator.cs
- CommonObjectSecurity.cs
- FirstQueryOperator.cs
- BaseTemplateCodeDomTreeGenerator.cs
- GeometryModel3D.cs
- BindingCollection.cs
- InternalResources.cs
- XmlLinkedNode.cs
- OdbcError.cs
- Profiler.cs
- AuthorizationRuleCollection.cs
- RequestSecurityTokenForGetBrowserToken.cs
- ScrollChrome.cs
- DesignerCapabilities.cs
- TextEndOfSegment.cs
- DayRenderEvent.cs
- HandoffBehavior.cs
- HtmlTableCell.cs
- JavascriptXmlWriterWrapper.cs
- DataControlImageButton.cs
- LoginCancelEventArgs.cs
- EncryptedPackageFilter.cs
- MimeMultiPart.cs
- ComEventsMethod.cs
- AdjustableArrowCap.cs
- NgenServicingAttributes.cs
- TCPClient.cs
- GregorianCalendar.cs
- CurrentChangedEventManager.cs
- IndexedEnumerable.cs
- ZipIOFileItemStream.cs
- TextReturnReader.cs
- PropertyTabAttribute.cs
- WmlValidatorAdapter.cs
- DataGridViewColumn.cs
- ColumnMap.cs
- SkinBuilder.cs
- ConfigurationPropertyAttribute.cs
- DataGridColumn.cs
- DispatcherFrame.cs
- DataGridColumnDropSeparator.cs
- EncoderNLS.cs
- PerformanceCounterPermissionEntryCollection.cs
- VectorCollection.cs
- SqlProvider.cs