Exemplo n.º 1
0
        public QuantObserver(IQuantConfig config, ILogger log)
        {
            try
            {
                _log         = log;
                _config      = config;
                _options     = _config.Options();
                _stanOptions = _options.StanOptions;
                InitStanClient();
            }
            catch (StanConnectionException e)
            {
                _log.Critical(e, e.Message);

                // To need for writ log
                System.Threading.Thread.Sleep(2000);
                throw;
            }
            catch (Exception e)
            {
                _log.Critical(e, e.Message);

                // To need for writ log
                System.Threading.Thread.Sleep(2000);
                throw;
            }
        }
Exemplo n.º 2
0
        public QuantClient()
        {
            _config = new QuantConfig();
            _loger  = Bis.Logger.LoggerFactory.FromLoggerConfiguration(_config.AppsettingConfig, System.Guid.NewGuid());

            // Serilog.Debugging.SelfLog.Enable(e =>
            //{

            //});
        }