internal ApplicationContext(IImportPool importPool, IMessageBroker messageBroker, IServicePool servicePool, IDataBroker dataBroker, IVisualModuleManager visualModuleManager) { VisualModuleManager = visualModuleManager; DataBroker = dataBroker; ServicePool = servicePool; MessageBroker = messageBroker; ImportPool = importPool; }
public DataBrokerService(ILogger <DataBrokerService> logger, IOptions <DataBrokerConfiguration> dataBrokerConfig, IManagedMqttClient mqttClient, IDataBroker dataBroker) { _logger = logger; _config = dataBrokerConfig.Value; _mqttClient = mqttClient; _dataBroker = dataBroker; }
public ApplicationContext(IImportPool importPool, IMessageBroker messageBroker, IServicePool servicePool, IDataBroker dataBroker, IVisualModuleManager visualModuleManager) { VisualModuleManager = visualModuleManager; DataBroker = dataBroker; ServicePool = servicePool; MessageBroker = messageBroker; ImportPool = importPool; }
/// <param name="dataBroker"></param> public void Save(IDataBroker dataBroker) { if (IsNew()) { SaveNew(dataBroker); } else { SaveExisting(dataBroker); } }
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; }
public DataService(IDataBroker dataBroker) { this.dataBroker = dataBroker; }
protected abstract void SaveExisting(IDataBroker dataBroker);
protected abstract void SaveNew(IDataBroker dataBroker);
protected override void SaveExisting(IDataBroker dataBroker) { dataBroker.UpdateOrder(this); }
protected override void SaveNew(IDataBroker dataBroker) { dataBroker.SaveOrder(this); }
public GraphDataClient(IDataBroker <HttpResource, HttpBrokerResponse> dataBroker) { this.dataBroker = dataBroker; }
protected override void SaveExisting(IDataBroker dataBroker) { dataBroker.UpdateProduct(this); }
protected override void SaveNew(IDataBroker dataBroker) { dataBroker.SaveProduct(this); }
public ItemModel(IDataBroker repository) { _repository = repository; }