Пример #1
0
 public BotInfoCommands(CommandService commandService,
                        IOptionsSnapshot <WsbcOptions> coinOptions, IOptionsSnapshot <DiscordOptions> discordOptions)
 {
     this._commandService = commandService;
     this._coinOptions    = coinOptions.Value;
     this._discordOptions = discordOptions.Value;
 }
Пример #2
0
 public TxBitDataClient(IHttpClientFactory clientFactory, ILogger <TxBitDataClient> log,
                        IOptionsSnapshot <WsbcOptions> wsbcOptions, IOptionsSnapshot <TxBitOptions> txbitOptions)
 {
     this._clientFactory = clientFactory;
     this._log           = log;
     this._wsbcOptions   = wsbcOptions.Value;
     this._txbitOptions  = txbitOptions.Value;
 }
Пример #3
0
 public CoinDataEmbedBuilder(IOptionsSnapshot <WsbcOptions> options, IOptionsSnapshot <MiningPoolStatsOptions> poolStatsOptions)
 {
     this._options          = options.Value;
     this._poolStatsOptions = poolStatsOptions.Value;
 }