예제 #1
0
 public CommandHandler(IServiceProvider services)
 {
     _services   = services;
     _client     = services.GetRequiredService <DiscordSocketClient>();
     _commands   = services.GetRequiredService <CommandService>();
     _log        = services.GetRequiredService <ILogger>();
     _wordSearch = services.GetRequiredService <IWordSearch>();
     _cooldown   = services.GetRequiredService <ICooldown>();
 }
예제 #2
0
 public WordSearchModule(IServiceProvider services)
 {
     _validator  = services.GetRequiredService <IValidator>();
     _wordSearch = services.GetRequiredService <IWordSearch>();
     _logger     = services.GetRequiredService <ILogger>();
 }
예제 #3
0
 public MainPage()
 {
     InitializeComponent();
     this.entryWord.IsEnabled = false;
     wordSearchService        = new WordSearchService();
 }