/// <summary> /// Initializes a new instance of the <see cref="DeviceRepository" /> class. /// </summary> /// <param name="configService">The configuration service.</param> /// <param name="errorService">The error service.</param> /// <param name="logService">The log service.</param> /// <param name="sqlQueryProvider">The SQL query provider.</param> /// <param name="cacheQueryProvider">The cache query provider.</param> public DeviceRepository(IConfiguration configService, IErrorPolicy errorService, ILogPolicy logService, SqlQProvider.IDeviceQueryDataProvider sqlQueryProvider, CacheQProvider.IDeviceQueryDataProvider cacheQueryProvider) : base(configService, errorService, logService) { this.SqlQueryProvider = sqlQueryProvider; this.CacheQueryProvider = cacheQueryProvider; }
/// <summary> /// Initializes a new instance of the <see cref="DeviceRepository"/> class. /// </summary> /// <param name="configService">The configuration service.</param> /// <param name="errorService">The error service.</param> /// <param name="logService">The log service.</param> /// <param name="deviceIdentityProvider">The device identity provider.</param> /// <param name="sqlCommandProvider">The device provider.</param> public DeviceRepository(IConfiguration configService, IErrorPolicy errorService, ILogPolicy logService, IoTCHubProvider.IDeviceCommandDataProvider deviceIdentityProvider, SqlCProvider.IDeviceCommandDataProvider sqlCommandProvider, CacheCProvider.IDeviceCommandDataProvider cacheCommandProvider, CacheQProvider.IDeviceQueryDataProvider cacheQueryProvider) : base(configService, errorService, logService) { this.IoTDeviceProvider = deviceIdentityProvider; this.SqlDeviceProvider = sqlCommandProvider; this.CacheCommandProvider = cacheCommandProvider; this.CacheQueryProvider = cacheQueryProvider; }