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
- ObjectToIdCache.cs
- ReturnType.cs
- LassoHelper.cs
- HtmlElementCollection.cs
- SvcMapFileSerializer.cs
- Quaternion.cs
- Image.cs
- DashStyles.cs
- OptimizedTemplateContentHelper.cs
- CursorConverter.cs
- ClientOptions.cs
- InProcStateClientManager.cs
- MDIWindowDialog.cs
- MissingMethodException.cs
- MasterPage.cs
- DesignerAttribute.cs
- OleDbStruct.cs
- HtmlWindow.cs
- WebDescriptionAttribute.cs
- WhitespaceRuleLookup.cs
- XmlDocumentType.cs
- OnOperation.cs
- ColumnHeaderConverter.cs
- DateTimeOffsetAdapter.cs
- TextContainerChangeEventArgs.cs
- SamlAttribute.cs
- MarshalByRefObject.cs
- RadioButtonList.cs
- SqlDataAdapter.cs
- PropertyValidationContext.cs
- WsatServiceCertificate.cs
- TextTreeNode.cs
- LogArchiveSnapshot.cs
- GregorianCalendarHelper.cs
- SmiContextFactory.cs
- CaseInsensitiveComparer.cs
- BinaryFormatter.cs
- ConnectionsZoneDesigner.cs
- WebPartEditorApplyVerb.cs
- StylusPointPropertyInfoDefaults.cs
- SoapAttributeAttribute.cs
- DetailsView.cs
- TableDetailsCollection.cs
- StorageComplexTypeMapping.cs
- DeviceOverridableAttribute.cs
- TypeLibConverter.cs
- TemplateParser.cs
- AssociationSet.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- DataServiceResponse.cs
- ParameterToken.cs
- Int16Converter.cs
- SystemIPv4InterfaceProperties.cs
- SerializationStore.cs
- AssemblyAssociatedContentFileAttribute.cs
- XmlSchemaAny.cs
- WebUtil.cs
- XmlQueryType.cs
- _OverlappedAsyncResult.cs
- RegexCompiler.cs
- WindowsRegion.cs
- ArglessEventHandlerProxy.cs
- QualificationDataItem.cs
- EntityParameter.cs
- ThicknessAnimationBase.cs
- X509Certificate2.cs
- UnsettableComboBox.cs
- CaretElement.cs
- EditorPart.cs
- CodeConditionStatement.cs
- BamlResourceDeserializer.cs
- KnownBoxes.cs
- OleDbParameterCollection.cs
- TextParaClient.cs
- CatalogPartCollection.cs
- XPathBuilder.cs
- CheckBoxField.cs
- cookiecollection.cs
- MessageQueueConverter.cs
- XmlArrayItemAttributes.cs
- TransformedBitmap.cs
- ObjectStateManager.cs
- DelegateBodyWriter.cs
- MatchingStyle.cs
- AnnotationService.cs
- ObjectItemCachedAssemblyLoader.cs
- ProfilePropertyMetadata.cs
- ZipIORawDataFileBlock.cs
- SqlParameterCollection.cs
- EntityKey.cs
- MetricEntry.cs
- CorrelationManager.cs
- DataGridViewCell.cs
- PropertyChangeTracker.cs
- MimeTypeMapper.cs
- ImageListUtils.cs
- HierarchicalDataBoundControlAdapter.cs
- RpcResponse.cs
- StringOutput.cs
- QueryableDataSourceView.cs