Example #1
0
		public override void Load()
		{
          base.Load();
			if (host==null)
			{
				Type type = typeof (WebApplicationHost);
				host =  (WebApplicationHost) ApplicationHost.CreateApplicationHost (type, VirtualDirectory, BaseDirectory);
				host.SetListenAddress (Port);
			}
			host.Start ();
			_Loaded=true;
		}
Example #2
0
 public override void Load()
 {
     base.Load();
     if (host == null)
     {
         Type type = typeof(WebApplicationHost);
         host = (WebApplicationHost)ApplicationHost.CreateApplicationHost(type, VirtualDirectory, BaseDirectory);
         host.SetListenAddress(Port);
     }
     host.Start();
     _Loaded = true;
 }