public void StopService() { if (null != this._host) { this._host.StopService(); this._host = null; } }
public void StartService() { if (null == this._host) { this._host = new InternalAPICallbackHost(); } if (false == this._host.IsRunning) { this._host.StartService(); } }