コード例 #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);
        }
コード例 #2
0
 public PluginTypeConfiguration(T plugin, PluginSettingBuilder sb)
 {
     Plugin = plugin;
     PluginSettingBuilder = sb;
 }
コード例 #3
0
 public virtual Task OnSettingsCreating(PluginSettingBuilder settingBuilder)
 {
     return(Task.FromResult(0));
 }