コード例 #1
0
        public void StopService()
        {
            if (null != this._host)
            {
                this._host.StopService();
                this._host = null;
            }

            Unsubscribe();
        }
コード例 #2
0
        public void StartService()
        {
            if (null == this._host)
            {
                this._host = new EventSubscriberHost();
            }

            if (false == this._host.IsRunning)
            {
                this._host.StartService();
            }

            _systemName = "CEWEBSERVICECLIENT_" + ServiceListener.HostName;
            _systemUri  = this._host.HttpUri;

            Subscribe();
        }