/// <summary>
        /// Code executed when service is stopped
        /// </summary>
        protected override void OnStop()
        {
            // Deactivate facades
            DeactivateFacade(_productManagement);

            _host.Stop();
            _host = null;
        }
 /// <inheritdoc />
 public virtual void Stop()
 {
     _host?.Stop();
 }
        /// <inheritdoc />
        protected override void OnDispose()
        {
            _host.Stop();

            base.OnDispose();
        }