Esempio n. 1
0
 public void Dispose()
 {
     if (_sender != null)
     {
         _sender.Dispose();
         _sender = null;
     }
 }
Esempio n. 2
0
 public MyLogger(IConfiguration configuration)
 {
     _loggerConfiguration = configuration.GetLoggerConfiguration();
     if (string.IsNullOrEmpty(_loggerConfiguration.LogURL))
     {
         _loggerConfiguration.LogURL = configuration.GetSiteUrl("LogURL");
     }
     _sender = new MyLoggerSender <MyLog>(_loggerConfiguration);
 }