Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Hosting / ApplicationHost.cs / 1 / ApplicationHost.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Hosting { using System; using System.IO; using System.Collections; using System.Globalization; using System.Runtime.InteropServices; using System.Runtime.Remoting; using System.Web; using System.Web.Configuration; using System.Web.Util; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ApplicationHost { private ApplicationHost() { } /* * Creates new app domain for hosting of ASP.NET apps with a * user defined 'host' object in it. The host is needed to make * cross-domain calls to process requests in the host's app domain */ ///[To be supplied.] ////// [SecurityPermission(SecurityAction.Demand, Unrestricted=true)] public static Object CreateApplicationHost(Type hostType, String virtualDir, String physicalDir) { #if !FEATURE_PAL // FEATURE_PAL does not require PlatformID.Win32NT if (Environment.OSVersion.Platform != PlatformID.Win32NT) throw new PlatformNotSupportedException(SR.GetString(SR.RequiresNT)); #else // !FEATURE_PAL // FEATURE_PAL #endif // !FEATURE_PAL if (!StringUtil.StringEndsWith(physicalDir, Path.DirectorySeparatorChar)) physicalDir = physicalDir + Path.DirectorySeparatorChar; ApplicationManager appManager = ApplicationManager.GetApplicationManager(); String appId = (String.Concat(virtualDir, physicalDir).GetHashCode()).ToString("x"); ObjectHandle h = appManager.CreateInstanceInNewWorkerAppDomain( hostType, appId, VirtualPath.CreateNonRelative(virtualDir), physicalDir); return h.Unwrap(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Hosting { using System; using System.IO; using System.Collections; using System.Globalization; using System.Runtime.InteropServices; using System.Runtime.Remoting; using System.Web; using System.Web.Configuration; using System.Web.Util; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ApplicationHost { private ApplicationHost() { } /* * Creates new app domain for hosting of ASP.NET apps with a * user defined 'host' object in it. The host is needed to make * cross-domain calls to process requests in the host's app domain */ ///[To be supplied.] ////// [SecurityPermission(SecurityAction.Demand, Unrestricted=true)] public static Object CreateApplicationHost(Type hostType, String virtualDir, String physicalDir) { #if !FEATURE_PAL // FEATURE_PAL does not require PlatformID.Win32NT if (Environment.OSVersion.Platform != PlatformID.Win32NT) throw new PlatformNotSupportedException(SR.GetString(SR.RequiresNT)); #else // !FEATURE_PAL // FEATURE_PAL #endif // !FEATURE_PAL if (!StringUtil.StringEndsWith(physicalDir, Path.DirectorySeparatorChar)) physicalDir = physicalDir + Path.DirectorySeparatorChar; ApplicationManager appManager = ApplicationManager.GetApplicationManager(); String appId = (String.Concat(virtualDir, physicalDir).GetHashCode()).ToString("x"); ObjectHandle h = appManager.CreateInstanceInNewWorkerAppDomain( hostType, appId, VirtualPath.CreateNonRelative(virtualDir), physicalDir); return h.Unwrap(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationInfo.cs
- PrintingPermission.cs
- SurrogateSelector.cs
- DataGridViewAdvancedBorderStyle.cs
- MethodBuilder.cs
- WinEventQueueItem.cs
- TableLayoutSettings.cs
- SqlExpander.cs
- RepeatInfo.cs
- Span.cs
- OneToOneMappingSerializer.cs
- EncryptedReference.cs
- AutomationPropertyInfo.cs
- Control.cs
- BufferedReadStream.cs
- OperationCanceledException.cs
- WebResourceUtil.cs
- SiteMapNode.cs
- BoundingRectTracker.cs
- _Events.cs
- GlobalizationSection.cs
- CompoundFileIOPermission.cs
- LinkDescriptor.cs
- IfAction.cs
- ByteAnimationUsingKeyFrames.cs
- Cursor.cs
- WindowsTokenRoleProvider.cs
- ConstructorExpr.cs
- State.cs
- ProjectionPathSegment.cs
- CompositeScriptReference.cs
- AdapterUtil.cs
- ErrorFormatterPage.cs
- Scheduling.cs
- FormsAuthenticationTicket.cs
- Icon.cs
- StringBuilder.cs
- XmlLoader.cs
- RichTextBox.cs
- HttpStaticObjectsCollectionWrapper.cs
- Typeface.cs
- AngleUtil.cs
- XsdCachingReader.cs
- PersistenceMetadataNamespace.cs
- RSAPKCS1SignatureFormatter.cs
- NamespaceInfo.cs
- XMLSyntaxException.cs
- WindowsTreeView.cs
- NumericUpDown.cs
- QueueException.cs
- RelatedView.cs
- CounterCreationData.cs
- EntityReference.cs
- CodeGroup.cs
- WindowsEditBoxRange.cs
- UrlPath.cs
- NativeMethods.cs
- ExternalCalls.cs
- ContextDataSourceContextData.cs
- SchemaComplexType.cs
- ThreadStaticAttribute.cs
- DispatcherExceptionEventArgs.cs
- NamespaceExpr.cs
- MarkedHighlightComponent.cs
- SortDescriptionCollection.cs
- SequentialWorkflowRootDesigner.cs
- UpdatePanelTrigger.cs
- ServerProtocol.cs
- SqlProviderServices.cs
- SingleTagSectionHandler.cs
- ResourcesBuildProvider.cs
- ProcessRequestArgs.cs
- DLinqDataModelProvider.cs
- FileSystemInfo.cs
- ByteAnimation.cs
- ThreadInterruptedException.cs
- ToolboxDataAttribute.cs
- RadioButtonRenderer.cs
- LogPolicy.cs
- Delegate.cs
- Propagator.JoinPropagator.cs
- Trace.cs
- loginstatus.cs
- WmpBitmapDecoder.cs
- SignedXml.cs
- OnOperation.cs
- FixedSOMTextRun.cs
- HwndSubclass.cs
- ReadOnlyHierarchicalDataSourceView.cs
- HtmlTextViewAdapter.cs
- DbConnectionStringBuilder.cs
- RuleSettings.cs
- ModuleConfigurationInfo.cs
- DrawListViewSubItemEventArgs.cs
- SetStoryboardSpeedRatio.cs
- DataBoundControl.cs
- SmtpFailedRecipientException.cs
- PropertyDescriptor.cs
- AccessedThroughPropertyAttribute.cs
- WsdlInspector.cs