protected override void OnStopping() { _logger.LogInformation("OnStopping has been called."); _client.Stop(); _myNoSqlClientLifeTime.Stop(); _logger.LogInformation("MyServiceBusTcpClient is stopped."); }
protected override void OnStopping() { _logger.LogInformation("OnStopping has been called"); _myNoSqlClient.Stop(); _logger.LogInformation("MyNoSqlTcpClient is stopped"); _myServiceBusTcpClient.Stop(); _logger.LogInformation("MyServiceBusTcpClient is stopped"); _depositsProcessingJob.Stop(); _logger.LogInformation("DepositsProcessingJob is stopped"); }
protected override void OnStopping() { _marketMakerJob.Stop(); _logger.LogInformation("OnStopping has been called."); _myNoSqlClient.Stop(); try { _myServiceBusTcpClient.Stop(); } catch (Exception ex) { Console.WriteLine($"Exception on MyServiceBusTcpClient.Stop: {ex}"); } }