Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Hosting / ApplicationHost.cs / 2 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InputScopeConverter.cs
- PropertyInfoSet.cs
- ProviderCommandInfoUtils.cs
- BitmapCodecInfoInternal.cs
- ChannelServices.cs
- ProtocolsConfiguration.cs
- HuffCodec.cs
- _ConnectStream.cs
- PropertyPath.cs
- CodeVariableReferenceExpression.cs
- WindowsGrip.cs
- BoolExpression.cs
- SqlClientWrapperSmiStream.cs
- IntegerValidatorAttribute.cs
- TabControlAutomationPeer.cs
- SqlBuffer.cs
- ValidatorCompatibilityHelper.cs
- EndCreateSecurityTokenRequest.cs
- CustomAttributeFormatException.cs
- AttachedProperty.cs
- DataObjectPastingEventArgs.cs
- CookieProtection.cs
- DragDeltaEventArgs.cs
- DesignTimeTemplateParser.cs
- BamlVersionHeader.cs
- TaskDesigner.cs
- Rule.cs
- EndOfStreamException.cs
- NetworkInformationPermission.cs
- StringFunctions.cs
- WebPartsPersonalization.cs
- Base64WriteStateInfo.cs
- SecUtil.cs
- InkCanvasSelectionAdorner.cs
- XslException.cs
- TextRangeAdaptor.cs
- ArrangedElement.cs
- DefaultHttpHandler.cs
- safex509handles.cs
- TypeDescriptor.cs
- XmlNodeChangedEventManager.cs
- _SslSessionsCache.cs
- WebEvents.cs
- BoolExpression.cs
- Size.cs
- DataColumn.cs
- SqlIdentifier.cs
- WindowsFont.cs
- BindingExpressionUncommonField.cs
- StructuredType.cs
- ImageSource.cs
- QEncodedStream.cs
- SqlDataSourceCustomCommandEditor.cs
- SelectionItemProviderWrapper.cs
- Preprocessor.cs
- PolicyVersionConverter.cs
- WorkflowFileItem.cs
- HeaderUtility.cs
- XMLDiffLoader.cs
- Freezable.cs
- XmlSerializerVersionAttribute.cs
- OleDbReferenceCollection.cs
- SiteMapNode.cs
- PropertyContainer.cs
- SimpleRecyclingCache.cs
- DelegateBodyWriter.cs
- BuilderPropertyEntry.cs
- KeyEventArgs.cs
- TextInfo.cs
- RegexRunnerFactory.cs
- ParentUndoUnit.cs
- LinkLabel.cs
- XmlWellformedWriter.cs
- StrokeNode.cs
- StyleModeStack.cs
- XmlSchemaInclude.cs
- WebScriptEnablingElement.cs
- SymmetricKey.cs
- LogReservationCollection.cs
- StringCollectionEditor.cs
- DataGridViewCellCancelEventArgs.cs
- DbConnectionHelper.cs
- DataGridViewCellStyleConverter.cs
- TableSectionStyle.cs
- UrlMappingsSection.cs
- TemplateControlParser.cs
- MappingItemCollection.cs
- XmlSchemaGroup.cs
- DetailsViewUpdateEventArgs.cs
- SystemMulticastIPAddressInformation.cs
- AdRotator.cs
- BooleanSwitch.cs
- SspiSecurityTokenProvider.cs
- SqlBooleanMismatchVisitor.cs
- HighContrastHelper.cs
- ISO2022Encoding.cs
- ServicePoint.cs
- _IPv6Address.cs
- TargetPerspective.cs
- ToolStripMenuItem.cs