Esempio n. 1
0
 internal ApplicationContext(IImportPool importPool, IMessageBroker messageBroker, IServicePool servicePool, IDataBroker dataBroker, IVisualModuleManager visualModuleManager)
 {
     VisualModuleManager = visualModuleManager;
     DataBroker = dataBroker;
     ServicePool = servicePool;
     MessageBroker = messageBroker;
     ImportPool = importPool;
 }
Esempio n. 2
0
        public DataBrokerService(ILogger <DataBrokerService> logger, IOptions <DataBrokerConfiguration> dataBrokerConfig, IManagedMqttClient mqttClient,
                                 IDataBroker dataBroker)
        {
            _logger = logger;
            _config = dataBrokerConfig.Value;

            _mqttClient = mqttClient;
            _dataBroker = dataBroker;
        }
Esempio n. 3
0
 public ApplicationContext(IImportPool importPool, IMessageBroker messageBroker, IServicePool servicePool,
                           IDataBroker dataBroker, IVisualModuleManager visualModuleManager)
 {
     VisualModuleManager = visualModuleManager;
     DataBroker          = dataBroker;
     ServicePool         = servicePool;
     MessageBroker       = messageBroker;
     ImportPool          = importPool;
 }
Esempio n. 4
0
 /// <param name="dataBroker"></param>
 public void Save(IDataBroker dataBroker)
 {
     if (IsNew())
     {
         SaveNew(dataBroker);
     }
     else
     {
         SaveExisting(dataBroker);
     }
 }
Esempio n. 5
0
        private void ConfigureWebShop()
        {
            var configurator = new WebShopConfigurator(_configFile);

            DataBroker = new WebShopDataBroker(configurator.SetDataProvider());
        }
 protected void SetupDataBroker()
 {
     _dataBroker = CreateDataBroker();
     SetupTestData();
 }
 public GroceryStoreManager(IDataBroker dataBroker)
 {
     _dataBroker = dataBroker;
 }
Esempio n. 8
0
 public DataService(IDataBroker dataBroker)
 {
     this.dataBroker = dataBroker;
 }
Esempio n. 9
0
 protected abstract void SaveExisting(IDataBroker dataBroker);
Esempio n. 10
0
 protected abstract void SaveNew(IDataBroker dataBroker);
Esempio n. 11
0
 protected override void SaveExisting(IDataBroker dataBroker)
 {
     dataBroker.UpdateOrder(this);
 }
Esempio n. 12
0
 protected override void SaveNew(IDataBroker dataBroker)
 {
     dataBroker.SaveOrder(this);
 }
 public GraphDataClient(IDataBroker <HttpResource, HttpBrokerResponse> dataBroker)
 {
     this.dataBroker = dataBroker;
 }
Esempio n. 14
0
 protected override void SaveExisting(IDataBroker dataBroker)
 {
     dataBroker.UpdateProduct(this);
 }
Esempio n. 15
0
 protected override void SaveNew(IDataBroker dataBroker)
 {
     dataBroker.SaveProduct(this);
 }
Esempio n. 16
0
 public ItemModel(IDataBroker repository)
 {
     _repository = repository;
 }