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
- DbModificationClause.cs
- XmlAttributeHolder.cs
- Crc32.cs
- TdsParameterSetter.cs
- EntityRecordInfo.cs
- TemplatingOptionsDialog.cs
- DelegatingHeader.cs
- WindowsFormsSectionHandler.cs
- ReadWriteObjectLock.cs
- TransformConverter.cs
- ExpressionEditorAttribute.cs
- LoadRetryAsyncResult.cs
- ProvidePropertyAttribute.cs
- HealthMonitoringSectionHelper.cs
- ServiceNameElementCollection.cs
- DefaultEventAttribute.cs
- AttachedAnnotationChangedEventArgs.cs
- EdmComplexTypeAttribute.cs
- PhysicalFontFamily.cs
- TimeoutException.cs
- AssertSection.cs
- MultiSelectRootGridEntry.cs
- HtmlTableCellCollection.cs
- FactoryMaker.cs
- Rotation3D.cs
- TdsParser.cs
- Rotation3DAnimation.cs
- QuarticEase.cs
- SchemaDeclBase.cs
- CompilerGlobalScopeAttribute.cs
- JsonXmlDataContract.cs
- Identifier.cs
- AutoScrollHelper.cs
- MethodCallTranslator.cs
- GridViewColumn.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- BasePattern.cs
- CheckBoxPopupAdapter.cs
- ListDictionary.cs
- OrderingInfo.cs
- ExponentialEase.cs
- ConstraintConverter.cs
- RunInstallerAttribute.cs
- ScriptRegistrationManager.cs
- ProfileSection.cs
- SizeFConverter.cs
- GridItemCollection.cs
- ScriptServiceAttribute.cs
- DeclaredTypeElement.cs
- SettingsProperty.cs
- PropertyGrid.cs
- followingquery.cs
- TableDetailsCollection.cs
- HttpListenerResponse.cs
- CompilerWrapper.cs
- WebSysDescriptionAttribute.cs
- DelegatedStream.cs
- ExceptionHandler.cs
- WebReferenceOptions.cs
- SyndicationCategory.cs
- Registry.cs
- CapabilitiesSection.cs
- TextViewDesigner.cs
- HtmlButton.cs
- PointCollection.cs
- StdValidatorsAndConverters.cs
- TagNameToTypeMapper.cs
- PackageProperties.cs
- BitmapEffectState.cs
- DataGridViewMethods.cs
- X509InitiatorCertificateServiceElement.cs
- XmlSortKeyAccumulator.cs
- CodeIdentifiers.cs
- EmptyEnumerator.cs
- PackageRelationship.cs
- ControlPropertyNameConverter.cs
- SpecialTypeDataContract.cs
- GridToolTip.cs
- OutputCacheProfile.cs
- StateMachineSubscription.cs
- WmlCommandAdapter.cs
- UdpSocketReceiveManager.cs
- HtmlEncodedRawTextWriter.cs
- XNodeValidator.cs
- DragAssistanceManager.cs
- DataSourceCache.cs
- DiscoveryClientReferences.cs
- storepermission.cs
- ModifierKeysConverter.cs
- BitmapVisualManager.cs
- AnimationStorage.cs
- PointHitTestParameters.cs
- RegexMatchCollection.cs
- CodeCastExpression.cs
- ResponseStream.cs
- TextTreePropertyUndoUnit.cs
- DataIdProcessor.cs
- TdsParserHelperClasses.cs
- CommandBindingCollection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs