/// <summary> /// Code executed when service is stopped /// </summary> protected override void OnStop() { // Deactivate facades DeactivateFacade(_productManagement); _host.Stop(); _host = null; }
/// <summary> /// Code executed after OnInitialize /// </summary> protected override void OnStart() { // Start Manager Container.Resolve <IProductStorage>().Start(); Container.Resolve <IProductManager>().Start(); // Start all plugins _host = Container.Resolve <IConfiguredHostFactory>().CreateHost <IProductInteraction>(Config.InteractionHost); _host.Start(); // Activate facades ActivateFacade(_productManagement); }
/// <inheritdoc /> public virtual void Dispose() { _host = null; }
/// <inheritdoc /> public virtual void Start() { _host = HostFactory.CreateHost <TWcf>(Config.ProvidedEndpoint); _host.Start(); }
/// <inheritdoc /> protected override void OnInitialize() { base.OnInitialize(); _host = HostFactory.CreateHost <IInteractionService>(HostConfig); }