Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public PluginTypeConfiguration(T plugin, PluginSettingBuilder sb)
 {
     Plugin = plugin;
     PluginSettingBuilder = sb;
 }
Ejemplo n.º 3
0
 public virtual Task OnSettingsCreating(PluginSettingBuilder settingBuilder)
 {
     return(Task.FromResult(0));
 }