Beispiel #1
0
        public async Task Initialize(IFeedback <LogEntry> log, IEntityContextConnection entityContextConnection)
        {
            EntityContextConnection = entityContextConnection;
            Log = log;

            DeviceValueBuilder   = new DeviceValueBuilder(entityContextConnection);
            DeviceCommandBuilder = new DeviceCommandBuilder(entityContextConnection);

            var dtb = new DeviceTypeBuilder(entityContextConnection);

            await OnDeviceTypesCreating(dtb);

            var sb = new AdapterSettingBuilder(entityContextConnection, CancellationToken);

            await OnSettingsCreating(sb);
        }
Beispiel #2
0
 public virtual Task OnSettingsCreating(AdapterSettingBuilder settingBuilder)
 {
     return(Task.FromResult(0));
 }
Beispiel #3
0
 public AdapterTypeConfiguration(T adapter, AdapterSettingBuilder sb)
 {
     Adapter = adapter;
     AdapterSettingBuilder = sb;
 }