public EventDispatcherService(IServiceProvider provider) : base(provider) { _handlers = new Dictionary <Type, List <IHandler> >(); _queue = _provider.GetRequiredService <TaskQueueService>(); _client = _provider.GetRequiredService <DiscordClient>(); _commands = _provider.GetRequiredService <CommandService>(); _logging = _provider.GetRequiredService <LoggingService>(); }
public EventDispatcherService(IServiceProvider provider) { _provider = provider; _queue = _provider.GetRequiredService <TaskQueueService>(); _client = _provider.GetRequiredService <DiscordSocketClient>(); _restClient = _provider.GetRequiredService <DiscordRestClient>(); _commands = _provider.GetRequiredService <CommandService>(); _logging = _provider.GetRequiredService <LoggingService>(); _commandHandler = _provider.GetRequiredService <CommandHandlerService>(); }