/// <summary>
 /// Initializes a new instance of the<see cref="LibraryBookStatusRepository"/> class.
 /// </summary>
 /// <param name="connectionString"></param>
 /// <param name="serverType"></param>
 /// <param name="randomKeyGenerator"></param>
 public LibraryBookStatusRepository(string connectionString, string serverType, IRandomKeyGenerator randomKeyGenerator) : base(connectionString, serverType)
 {
     _randomKeyGenerator = randomKeyGenerator;
 }
 /// <summary>
 /// Initializes a new instance of the<see cref="LibraryBookStatusRepository"/> class.
 /// </summary>
 /// <param name="config"></param>
 /// <param name="apiConfiguration"></param>
 /// <param name="randomKeyGenerator"></param>
 public LibraryBookStatusRepository(IConfiguration config, IOptions <ApiConfiguration> apiConfiguration, IRandomKeyGenerator randomKeyGenerator) : base(config, apiConfiguration)
 {
     _apiConfiguration   = apiConfiguration;
     _randomKeyGenerator = randomKeyGenerator;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the<see cref="UserRepository"/> class.
 /// </summary>
 /// <param name="appConfig">
 /// The app config.
 /// </param>
 public UserRepository(IConfiguration config, IOptions <ApiConfiguration> apiConfiguration, IRandomKeyGenerator randomKeyGenerator) : base(config, apiConfiguration)
 {
     _apiConfiguration   = apiConfiguration;
     _randomKeyGenerator = randomKeyGenerator;
 }
Пример #4
0
 public ApiKeysService(IRepository <ApiKey> apiKeysRepository,
                       IRandomKeyGenerator randomKeyGenerator) : base(apiKeysRepository)
 {
     this.apiKeysRepository  = apiKeysRepository;
     this.randomKeyGenerator = randomKeyGenerator;
 }