public async Task Initialize(IFeedback <LogEntry> log, IEntityContextConnection entityContextConnection, IAdapterManager adapterManager) { EntityContextConnection = entityContextConnection; Log = log; AdapterManager = adapterManager; var sb = new PluginSettingBuilder(entityContextConnection, CancellationToken); await OnSettingsCreating(sb); var ssb = new SceneSettingBuilder(EntityContextConnection); await OnSceneSettingsCreating(ssb); var dsb = new DeviceSettingBuilder(EntityContextConnection); await OnDeviceSettingsCreating(dsb); }
public PluginTypeConfiguration(T plugin, PluginSettingBuilder sb) { Plugin = plugin; PluginSettingBuilder = sb; }
public virtual Task OnSettingsCreating(PluginSettingBuilder settingBuilder) { return(Task.FromResult(0)); }