public CustomerRepository( ILogger <CustomerRepository> logger, IOptions <ConnectionStringOption> connectionString) { _logger = logger; _connectionString = connectionString.Value; }
public FindPlayer(BattleManager battleManager, IOptions <ConnectionStringOption> connectionStringOption) { _battleManager = battleManager; _connectionStringOption = connectionStringOption.Value; }
public PlayGame(IOptions <ConnectionStringOption> connectionStringOption) { _connectionStringOption = connectionStringOption.Value; }
protected SqlServerRepository(ILogger logger, IOptions <ConnectionStringOption> connectionStringOptions) { Logger = logger ?? throw new System.ArgumentNullException(nameof(logger)); _connectionStringOptions = connectionStringOptions.Value ?? throw new System.ArgumentNullException(nameof(connectionStringOptions.Value)); }
public BotAnswerQuestion(IOptions <ConnectionStringOption> connectionStringOption, LevelManager levelManager) { _levelManager = levelManager; _connectionStringOption = connectionStringOption.Value; }