Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Hosting / ApplicationHost.cs / 1305376 / 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; ////// 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
- LinqDataView.cs
- ProxyManager.cs
- EntityObject.cs
- RoutingSection.cs
- ZoneButton.cs
- SqlTriggerAttribute.cs
- ListControl.cs
- DataServiceBuildProvider.cs
- TimeZone.cs
- EventMetadata.cs
- XmlIgnoreAttribute.cs
- WebBrowserSiteBase.cs
- PointConverter.cs
- CollectionChangeEventArgs.cs
- KnownIds.cs
- CssTextWriter.cs
- TextDecorationCollection.cs
- BamlResourceContent.cs
- ListViewGroupCollectionEditor.cs
- ServiceThrottlingElement.cs
- VersionPair.cs
- JsonWriter.cs
- CssStyleCollection.cs
- ProxyAttribute.cs
- Padding.cs
- GuidelineSet.cs
- ConvertEvent.cs
- XmlValueConverter.cs
- OperationContractGenerationContext.cs
- CalendarDesigner.cs
- XmlArrayItemAttribute.cs
- DataGridViewCheckBoxColumn.cs
- LOSFormatter.cs
- MailAddressParser.cs
- WebPartConnectionsConnectVerb.cs
- ValueSerializer.cs
- MemberInfoSerializationHolder.cs
- TypeListConverter.cs
- QueryStringParameter.cs
- Crc32Helper.cs
- SectionXmlInfo.cs
- TablePattern.cs
- DataObjectPastingEventArgs.cs
- TimeEnumHelper.cs
- InnerItemCollectionView.cs
- ComponentDispatcherThread.cs
- CollectionView.cs
- BinHexEncoder.cs
- ButtonField.cs
- XmlDictionaryReaderQuotas.cs
- ComAdminInterfaces.cs
- DPCustomTypeDescriptor.cs
- ParseElementCollection.cs
- ImageIndexConverter.cs
- TemplateGroupCollection.cs
- TranslateTransform.cs
- ProviderUtil.cs
- VerticalAlignConverter.cs
- BindingBase.cs
- Utils.cs
- FlagsAttribute.cs
- HostingPreferredMapPath.cs
- EventLogReader.cs
- SqlMetaData.cs
- DynamicRenderer.cs
- AsyncOperationLifetimeManager.cs
- basevalidator.cs
- DesignerActionUIStateChangeEventArgs.cs
- DbDeleteCommandTree.cs
- Glyph.cs
- ListViewDeleteEventArgs.cs
- AlternateViewCollection.cs
- GlyphingCache.cs
- WarningException.cs
- XmlSchemaSimpleTypeUnion.cs
- _FtpDataStream.cs
- XmlFormatMapping.cs
- ColorInterpolationModeValidation.cs
- Vertex.cs
- ProtectedProviderSettings.cs
- CompositeFontInfo.cs
- BaseDataList.cs
- AnonymousIdentificationSection.cs
- ConfigXmlCDataSection.cs
- SHA512Managed.cs
- PageCatalogPart.cs
- Perspective.cs
- DrawingServices.cs
- DataProtection.cs
- EnumValidator.cs
- DbExpressionVisitor.cs
- RawStylusInputCustomData.cs
- ZipIOExtraFieldElement.cs
- QuaternionAnimation.cs
- RegexWriter.cs
- ReadWriteSpinLock.cs
- QueuePathEditor.cs
- IBuiltInEvidence.cs
- TextTreeInsertElementUndoUnit.cs
- SessionParameter.cs