Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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(); } } }[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HitTestDrawingContextWalker.cs
- InvariantComparer.cs
- Set.cs
- WindowsTreeView.cs
- TableItemProviderWrapper.cs
- DataGridViewRowCollection.cs
- NumericExpr.cs
- PropertyInformationCollection.cs
- WebPartConnectionsEventArgs.cs
- RegistrationServices.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- XmlBinaryWriterSession.cs
- VBCodeProvider.cs
- DateBoldEvent.cs
- TransmissionStrategy.cs
- SqlTrackingService.cs
- WorkflowViewService.cs
- BitHelper.cs
- SamlAttributeStatement.cs
- ByteConverter.cs
- RoamingStoreFile.cs
- PresentationTraceSources.cs
- MatrixUtil.cs
- DeadCharTextComposition.cs
- PathData.cs
- SQLInt32.cs
- InputMethodStateTypeInfo.cs
- MetadataSerializer.cs
- DiagnosticsConfiguration.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ColumnBinding.cs
- CqlBlock.cs
- CurrentChangedEventManager.cs
- Span.cs
- FrameDimension.cs
- CompiledRegexRunnerFactory.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- EnvelopedSignatureTransform.cs
- GlyphInfoList.cs
- HtmlTitle.cs
- EpmTargetTree.cs
- XmlDataSource.cs
- SymLanguageType.cs
- ActiveDocumentEvent.cs
- JsonByteArrayDataContract.cs
- Calendar.cs
- Win32Exception.cs
- DataControlPagerLinkButton.cs
- WorkflowMarkupSerializer.cs
- DiscoveryClientReferences.cs
- HttpCacheVaryByContentEncodings.cs
- NestPullup.cs
- XmlSignatureProperties.cs
- UidManager.cs
- NameValuePermission.cs
- NameValuePermission.cs
- FrameworkElement.cs
- _TLSstream.cs
- DisposableCollectionWrapper.cs
- ConfigurationValidatorBase.cs
- GreenMethods.cs
- VisualTreeUtils.cs
- DbXmlEnabledProviderManifest.cs
- WriterOutput.cs
- QueryInterceptorAttribute.cs
- RichTextBoxConstants.cs
- GB18030Encoding.cs
- ObjectSelectorEditor.cs
- SoapAttributeOverrides.cs
- ActivitySurrogateSelector.cs
- UserPreferenceChangingEventArgs.cs
- PersonalizationProviderCollection.cs
- _NestedSingleAsyncResult.cs
- Compensation.cs
- HtmlInputImage.cs
- GeneratedContractType.cs
- VariableReference.cs
- XmlSchemaRedefine.cs
- SafeSecurityHandles.cs
- NoResizeSelectionBorderGlyph.cs
- SessionPageStateSection.cs
- GeometryGroup.cs
- DataServiceKeyAttribute.cs
- HtmlSelect.cs
- RolePrincipal.cs
- SyntaxCheck.cs
- DependentList.cs
- Part.cs
- TrackingQueryElement.cs
- SelectorAutomationPeer.cs
- SamlAuthorityBinding.cs
- XmlBinaryReader.cs
- _TransmitFileOverlappedAsyncResult.cs
- SqlCrossApplyToCrossJoin.cs
- VariableDesigner.xaml.cs
- LinqTreeNodeEvaluator.cs
- DetailsViewDeletedEventArgs.cs
- UxThemeWrapper.cs
- DataGridViewRowCollection.cs
- WebPartManagerInternals.cs