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 CommandServiceRegistrationHost(CommandService commandService, ILogger <CommandServiceRegistrationHost> logger, LogAdapter <CommandService> adapter)
 {
     _commandService = commandService;
     _logger         = logger;
     _adapter        = adapter;
 }
Exemplo n.º 3
0
 public CommandServiceInitializerHost(CommandService commandService, ILogger <CommandServiceInitializerHost> logger, LogAdapter <CommandService> adapter)
 {
     _commandService = commandService;
     _logger         = logger;
     _adapter        = adapter;
 }
 public DiscordHostedService(ILogger <DiscordHostedService> logger, DiscordHostConfiguration config, LogAdapter <DiscordSocketClient> adapter, DiscordSocketClient client)
 {
     _logger      = logger;
     _config      = config;
     _client      = client;
     _client.Log += adapter.Log;
 }