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>(); }
public WordSearchModule(IServiceProvider services) { _validator = services.GetRequiredService <IValidator>(); _wordSearch = services.GetRequiredService <IWordSearch>(); _logger = services.GetRequiredService <ILogger>(); }
public MainPage() { InitializeComponent(); this.entryWord.IsEnabled = false; wordSearchService = new WordSearchService(); }