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