System.Web.Hosting.ApplicationHost.SetHostingEnvironment C# (CSharp) 메소드

SetHostingEnvironment() 정적인 개인적인 메소드

static private SetHostingEnvironment ( ) : void
리턴 void
		static void SetHostingEnvironment ()
		{
			bool shadow_copy_enabled = true;
			HostingEnvironmentSection he = WebConfigurationManager.GetWebApplicationSection ("system.web/hostingEnvironment") as HostingEnvironmentSection;
			if (he != null)
				shadow_copy_enabled = he.ShadowCopyBinAssemblies;

			if (shadow_copy_enabled) {
				AppDomain current = AppDomain.CurrentDomain;
				current.SetShadowCopyFiles ();
				current.SetShadowCopyPath (current.SetupInformation.PrivateBinPath);
			}

			HostingEnvironment.IsHosted = true;
			HostingEnvironment.SiteName = HostingEnvironment.ApplicationID;
		}
#endif