Exemplo n.º 1
0
 public DiscordHostedService(ILogger <DiscordHostedService> logger, IOptions <DiscordHostConfiguration> options, LogAdapter <DiscordSocketClient> adapter, DiscordSocketClient client)
 {
     _logger      = logger;
     _config      = options.Value;
     _client      = client;
     _client.Log += adapter.Log;
 }
 public DiscordHostedService(ILogger <DiscordHostedService> logger, DiscordHostConfiguration config, LogAdapter <DiscordSocketClient> adapter, DiscordSocketClient client)
 {
     _logger      = logger;
     _config      = config;
     _client      = client;
     _client.Log += adapter.Log;
 }
Exemplo n.º 3
0
 public LogAdapter(ILogger <T> logger, DiscordHostConfiguration config)
 {
     _logger    = logger;
     _formatter = config.LogFormat;
 }