Exemplo n.º 1
0
 public PV6900DevicePanel(
     DeviceStorageService deviceStorageService,
     ProgramDashboardVM programDashboardVM
     )
 {
     Device = deviceStorageService.Get() !;
     _programDashboardVM = programDashboardVM;
 }
Exemplo n.º 2
0
        //опции для создания IProduser через фабрику

        #endregion



        #region ctor

        public MediatorForStorages(DeviceStorageService <TIn> deviceStorageService,
                                   ExchangeStorageService <TIn> exchangeStorageService,
                                   BackgroundStorageService backgroundStorageService,
                                   TransportStorageService transportStorageService,
                                   IEventBus eventBus,
                                   IIndex <string, Func <ProviderOption, IExchangeDataProvider <TIn, ResponseDataItem <TIn> > > > dataProviderFactory,
                                   Func <ProduserOption, Owned <IProduser> > produser4DeviceRespFactory,
                                   AppConfigWrapper appConfigWrapper,
                                   ILogger logger)
        {
            _transportStorageService  = transportStorageService;
            _backgroundStorageService = backgroundStorageService;
            _exchangeStorageService   = exchangeStorageService;
            _deviceStorageService     = deviceStorageService;
            _eventBus                   = eventBus;
            _dataProviderFactory        = dataProviderFactory;
            _produser4DeviceRespFactory = produser4DeviceRespFactory;
            _appConfigWrapper           = appConfigWrapper;
            _logger = logger;
        }