/// <summary> /// Initializes a new instance of the <see cref="DevicesService" /> class. /// </summary> /// <param name="unitOfWork">The unit of work.</param> /// <param name="notificationsDataProvider">The notifications data provider.</param> /// <param name="usersDataProvider">The users data provider.</param> /// <param name="appSettings">The application settings.</param> public DevicesService( IUnitOfWork unitOfWork, IMessagingHubDataProvider notificationsDataProvider, IUsersDataProvider usersDataProvider, IiHealthDataProvider iHealthDataProvider, IAppSettings appSettings, IiHealthSettings iHealthSettings ) { this.unitOfWork = unitOfWork; this.deviceRepository = this.unitOfWork.CreateGenericRepository <Device>(); this.notificationsDataProvider = notificationsDataProvider; this.usersDataProvider = usersDataProvider; this.iHealthDataProvider = iHealthDataProvider; this.appSettings = appSettings; this.iHealthSettings = iHealthSettings; this.logger = NLog.LogManager.GetCurrentClassLogger(); }
public MessagingHubService(IMessagingHubDataProvider messagingHubDataProvider) { this.messagingHubDataProvider = messagingHubDataProvider; }