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
- DescendantOverDescendantQuery.cs
- ReceiveErrorHandling.cs
- ConnectionPoolManager.cs
- UInt32.cs
- MemoryFailPoint.cs
- ProtectedConfigurationSection.cs
- SimpleHandlerFactory.cs
- Substitution.cs
- ViewValidator.cs
- IEnumerable.cs
- EtwProvider.cs
- SafeNativeMethods.cs
- TextMetrics.cs
- securitycriticaldataformultiplegetandset.cs
- TaskExceptionHolder.cs
- SettingsAttributes.cs
- HttpProtocolImporter.cs
- _LocalDataStoreMgr.cs
- SecurityTokenProvider.cs
- WinEventQueueItem.cs
- TextRangeProviderWrapper.cs
- SamlConditions.cs
- TwoPhaseCommitProxy.cs
- NullEntityWrapper.cs
- WebPartHelpVerb.cs
- WindowProviderWrapper.cs
- DynamicILGenerator.cs
- ListenDesigner.cs
- SmtpAuthenticationManager.cs
- HtmlSelect.cs
- CryptoKeySecurity.cs
- PasswordTextContainer.cs
- FontWeightConverter.cs
- EntityDataSourceColumn.cs
- EventProviderTraceListener.cs
- ProfessionalColors.cs
- WebServiceMethodData.cs
- DataServiceStreamProviderWrapper.cs
- ReliableDuplexSessionChannel.cs
- SynchronizationFilter.cs
- DrawingBrush.cs
- ZoneMembershipCondition.cs
- FileStream.cs
- TogglePattern.cs
- CodeRegionDirective.cs
- ValueProviderWrapper.cs
- Debug.cs
- DataGridViewElement.cs
- Nullable.cs
- ErrorHandler.cs
- ActivityBuilderXamlWriter.cs
- handlecollector.cs
- ServiceProviders.cs
- RoutedPropertyChangedEventArgs.cs
- ServicePointManager.cs
- AssociationSetEnd.cs
- TagNameToTypeMapper.cs
- TrustManager.cs
- PrinterSettings.cs
- ConfigXmlCDataSection.cs
- Collection.cs
- Opcode.cs
- CompilationLock.cs
- DataGridViewColumnEventArgs.cs
- Win32PrintDialog.cs
- SchemaImporter.cs
- CommonProperties.cs
- PriorityChain.cs
- InvalidDataException.cs
- HttpCapabilitiesBase.cs
- ExpressionsCollectionEditor.cs
- SetterTriggerConditionValueConverter.cs
- WorkflowMarkupSerializer.cs
- webeventbuffer.cs
- _ScatterGatherBuffers.cs
- WindowsClaimSet.cs
- BaseTemplateParser.cs
- InertiaExpansionBehavior.cs
- RunInstallerAttribute.cs
- Timer.cs
- BitmapDecoder.cs
- Context.cs
- Matrix3DStack.cs
- PointAnimationClockResource.cs
- IdentityNotMappedException.cs
- SortExpressionBuilder.cs
- XmlHierarchicalEnumerable.cs
- FixUp.cs
- AdapterSwitches.cs
- IgnoreFileBuildProvider.cs
- ExtensionQuery.cs
- LocationReference.cs
- PlaceHolder.cs
- RemotingConfiguration.cs
- TextHidden.cs
- ResourceDescriptionAttribute.cs
- PrintDialog.cs
- StringStorage.cs
- PrivacyNoticeBindingElementImporter.cs
- DateTime.cs