public UsersController( IUsersRepository usersRepository, IDevicesRepository devicesRepository) { _usersRepository = usersRepository; _devicesRepository = devicesRepository; }
public MessagingController( IGlobalSessionsRegistry sessionsRegistry, IGroupChatsRepository groupChatsRepository, IDevicesRepository devicesRepository, ProcessedMessagesQueue processedMessagesQueue, ISessionsServer server, IUndeliveredEventsRepository<Message> undeliveredMessagesRepository, IUndeliveredEventsRepository<DeliveryNotification> undeliveredDeliveryNotificationsRepository, IUndeliveredEventsRepository<SeenNotification> undeliveredSeenNotificationsRepository, IInternalMessageBus internalMessageBus) { _groupChatsRepository = groupChatsRepository; _devicesRepository = devicesRepository; _processedMessagesQueue = processedMessagesQueue; _messageEventManager = new ReliableEventManager<Message, IncomingMessage>(server, undeliveredMessagesRepository, sessionsRegistry,internalMessageBus,MessageDtoConverter, OnMessageProcessed); RegisterPulsable(_messageEventManager); _deliveryStatusEventManager = new ReliableEventManager<DeliveryNotification, ServerClient.Entities.Ws.Events.DeliveryNotification>(server, undeliveredDeliveryNotificationsRepository, sessionsRegistry, internalMessageBus, n => new ServerClient.Entities.Ws.Events.DeliveryNotification { MessageToken = n.MessageToken, EventId = n.EventId, DeliveredAt = n.CreatedAt }); RegisterPulsable(_deliveryStatusEventManager); _seenStatusEventManager = new ReliableEventManager<SeenNotification, ServerClient.Entities.Ws.Events.SeenNotification>(server, undeliveredSeenNotificationsRepository, sessionsRegistry, internalMessageBus, n => new ServerClient.Entities.Ws.Events.SeenNotification { MessageToken = n.MessageToken, EventId = n.EventId, SeenAt = n.CreatedAt }); RegisterPulsable(_seenStatusEventManager); _isTypingEventManager = new InstantEventManager<IsTypingEvent, IsTypingNotification>(server, sessionsRegistry, internalMessageBus, n => new IsTypingNotification { IsTyping = n.IsTyping, SenderUserId = n.SenderUserId, GroupId = n.GroupId }); RegisterPulsable(_isTypingEventManager); }
public DevicesController (IDevicesRepository devicesRepository, IAppUserTokensRepository appUserTokensRepository ) { this.devicesRepository = devicesRepository; this.appUserTokensRepository = appUserTokensRepository; }
public DeviceLogic(IDevicesRepository deviceRepository) { if (deviceRepository == null) { throw new ArgumentNullException(); } _deviceRepository = deviceRepository; }
public AdminController( IUsersRepository usersRepository, IDevicesRepository devicesRepository, IVideosRepository videosRepository) { _usersRepository = usersRepository; _devicesRepository = devicesRepository; _videosRepository = videosRepository; }
public InfoIpController (IInfoIpRepository infoIpRepository, IAppUserTokensRepository appUserTokensRepository, IDevicesRepository devicesRepository) { this.infoIpRepository = infoIpRepository; this.appUserTokensRepository = appUserTokensRepository; this.devicesRepository = devicesRepository; }
public RootController(AccessTokenFastValidator accessTokenFastValidator, ISessionsServer server, IDevicesRepository devicesRepository) { _accessTokenFastValidator = accessTokenFastValidator; _server = server; _devicesRepository = devicesRepository; var controllerTypes = Assembly.GetExecutingAssembly().ExportedTypes.Where(t => t.IsSubclassOf(typeof(BaseController)) && t != GetType()).ToList(); _childrenControllers.AddRange(controllerTypes.Select(ServiceLocator.Resolve).OfType<BaseController>()); }
public RootController(AccessTokenFastValidator accessTokenFastValidator, ISessionsServer server, IDevicesRepository devicesRepository) { _accessTokenFastValidator = accessTokenFastValidator; _server = server; _devicesRepository = devicesRepository; var controllerTypes = Assembly.GetExecutingAssembly().ExportedTypes.Where(t => t.IsSubclassOf(typeof(BaseController)) && t != GetType()).ToList(); _childrenControllers.AddRange(controllerTypes.Select(ServiceLocator.Resolve).OfType <BaseController>()); }
public ToolsController(IDevicesRepository devicesRepository, IGroupsRepository groupsRepository, ICommandsRepository commandsRepository, IInterfacesRepository interfacesRepository, IDeviceAccountsRepository accountsRepository, Func <string, IDeviceTools> serviceAccessor, IHelper helper) { _devicesRepository = devicesRepository; _groupsRepository = groupsRepository; _interfacesRepository = interfacesRepository; _commandsRepository = commandsRepository; _accountsRepository = accountsRepository; _helper = helper; _serviceAccessor = serviceAccessor; }
public DevicesController(IDevicesRepository devicesRepository, IGroupsRepository groupsRepository, IInterfacesRepository interfacesRepository, IModelRepository modelRepository, IDeviceAccountsRepository accountsRepository, IHelper helper) { _devicesRepository = devicesRepository; _groupsRepository = groupsRepository; _interfacesRepository = interfacesRepository; _modelRepository = modelRepository; _accountsRepository = accountsRepository; _helper = helper; DeviceVM = new DeviceViewModel { Groups = new List <Group>() }; }
public GroupChatsController(ISessionsServer server, IDevicesRepository devicesRepository, IUndeliveredEventsRepository <GroupChangedEvent> undeliveredGroupChangedEventsRepository, IGroupChatsRepository groupChatsRepository, IGlobalSessionsRegistry sessionsRegistry, IInternalMessageBus internalMessageBus) { _devicesRepository = devicesRepository; _groupChatsRepository = groupChatsRepository; _groupChangedEventManager = new ReliableEventManager <GroupChangedEvent, ClientDto.Events.GroupChangedNotification>(server, undeliveredGroupChangedEventsRepository, sessionsRegistry, internalMessageBus, GroupChangedDtoConverter); RegisterPulsable(_groupChangedEventManager); }
public MessagingController( IGlobalSessionsRegistry sessionsRegistry, IGroupChatsRepository groupChatsRepository, IDevicesRepository devicesRepository, ProcessedMessagesQueue processedMessagesQueue, ISessionsServer server, IUndeliveredEventsRepository <Message> undeliveredMessagesRepository, IUndeliveredEventsRepository <DeliveryNotification> undeliveredDeliveryNotificationsRepository, IUndeliveredEventsRepository <SeenNotification> undeliveredSeenNotificationsRepository, IInternalMessageBus internalMessageBus) { _groupChatsRepository = groupChatsRepository; _devicesRepository = devicesRepository; _processedMessagesQueue = processedMessagesQueue; _messageEventManager = new ReliableEventManager <Message, IncomingMessage>(server, undeliveredMessagesRepository, sessionsRegistry, internalMessageBus, MessageDtoConverter, OnMessageProcessed); RegisterPulsable(_messageEventManager); _deliveryStatusEventManager = new ReliableEventManager <DeliveryNotification, ServerClient.Entities.Ws.Events.DeliveryNotification>(server, undeliveredDeliveryNotificationsRepository, sessionsRegistry, internalMessageBus, n => new ServerClient.Entities.Ws.Events.DeliveryNotification { MessageToken = n.MessageToken, EventId = n.EventId, DeliveredAt = n.CreatedAt }); RegisterPulsable(_deliveryStatusEventManager); _seenStatusEventManager = new ReliableEventManager <SeenNotification, ServerClient.Entities.Ws.Events.SeenNotification>(server, undeliveredSeenNotificationsRepository, sessionsRegistry, internalMessageBus, n => new ServerClient.Entities.Ws.Events.SeenNotification { MessageToken = n.MessageToken, EventId = n.EventId, SeenAt = n.CreatedAt }); RegisterPulsable(_seenStatusEventManager); _isTypingEventManager = new InstantEventManager <IsTypingEvent, IsTypingNotification>(server, sessionsRegistry, internalMessageBus, n => new IsTypingNotification { IsTyping = n.IsTyping, SenderUserId = n.SenderUserId, GroupId = n.GroupId }); RegisterPulsable(_isTypingEventManager); }
public VideosController(IVideosRepository videosRepository, IDevicesRepository devicesRepository) { _videosRepository = videosRepository; _devicesRepository = devicesRepository; }
public DevicesController(IDevicesRepository devicesRepository, IHubContext <ActionHub, IActionHub> devicesHub) { this.devicesRepository = devicesRepository; this.hubContext = devicesHub; }
public void Initialize() { _dalContextMock = _mockRepository.StrictMock<IDALContext>(); _messagesRepositoryMock = _mockRepository.StrictMock<IMessagesRepository>(); _devicesRepositoryMock = _mockRepository.StrictMock<IDevicesRepository>(); }
public HomeController(IDevicesRepository devicesRepository) { _devicesRepository = devicesRepository; }
public DevicesController(IDevicesRepository devicesRepository) { this.devicesRepository = devicesRepository; }
public void TestInitialize() { _dalContextMock = _mockRepository.StrictMock<IDALContext>(); _devicesRepository = _mockRepository.StrictMock<IDevicesRepository>(); }
public DeviceManager(IDevicesRepository devicesRepository) { _devicesRepository = devicesRepository; }
public MeasurementsService(IMeasurementsRepository measurementsRepository, IDevicesRepository devicesRepository) { _devicesReporistory = devicesRepository; _measurementsRepository = measurementsRepository; }
public DeviceFileImportService_Test() { this.devicesRepository = new DeviceRepositoryMock(); testingInstance = new DevicesFileImportService(devicesRepository); }
public ChannelsManager(IChannelsService channelsService, IDevicesRepository devicesRepository) { _channelsService = channelsService; _devicesRepository = devicesRepository; }
public ChannelsManager(IChannelsService channelsService, IDevicesRepository devicesRepository) { this.channelsService = channelsService; this.devicesRepository = devicesRepository; }
public DevicesService(IDevicesRepository devicesRepository, IMeasurementsRepository measurementsRepository, ILogger <DevicesService> logger) { _logger = logger; _devicessRepository = devicesRepository; _measurementsRepository = measurementsRepository; }
public DevicesService(IDevicesRepository devicesRepository) { _devicesRepository = devicesRepository; }
public DeviceController(IDevicesRepository devicesRepository, IUsersRepository usersRepository) { _devicesRepository = devicesRepository; _usersRepository = usersRepository; }
public DevicesController(IDevicesRepository devicesRepository, IReservationsRepository reservationsRepository, IModelsRepository modelsRepository) { _devicesRepository = devicesRepository; _reservationsRepository = reservationsRepository; _modelsRepository = modelsRepository; }
public DevicesFileImportService(IDevicesRepository devicesRepository) { this.devicesRepository = devicesRepository; }
public TasksController(IHunterDBContext hunterDBContext) { tasksRepository = new TasksRepository(hunterDBContext); devicesRepository = new DevicesRepository(hunterDBContext); this.hunter = hunterDBContext; }
public DeviceManager(IDevicesRepository devicesRepository, IDeviceValidator deviceValidator) { _devicesRepository = devicesRepository; _deviceValidator = deviceValidator; }
public EventsManager(IDevicesRepository devicesRepository, IChannelsManager channelsManager, IProgramsManager programsManager) { this.devicesRepository = devicesRepository; this.channelsManager = channelsManager; this.programsManager = programsManager; }
public DevicesController(IHunterDBContext hunter) { devicesRepository = new DevicesRepository(hunter); this.hunter = hunter; }
public AqiEcoService(ILogger <AqiEcoService> logger, IDevicesRepository devicesRepository, AppSettings settings) { _logger = logger; _devicesRepository = devicesRepository; _settings = settings; }