Inherit from this class if you want to host your web services inside a Console Application, Windows Service, etc. Usage of HttpListener allows you to host webservices on the same port (:80) as IIS however it requires admin user privillages.
Inheritance: HttpListenerBase
コード例 #1
0
        public WinService(AppHostHttpListenerBase appHost, string listeningOn)
        {
            this.appHost = appHost;
            this.listeningOn = listeningOn;

            this.appHost.Init();

            InitializeComponent();
        }
コード例 #2
0
 public ServiceHost(AppHostHttpListenerBase appHost, ServiceConfiguration serviceConfiguration)
 {
     _appHost = appHost;
     _serviceConfiguration = serviceConfiguration;
 }