Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public virtual Task OnSettingsCreating(AdapterSettingBuilder settingBuilder)
 {
     return(Task.FromResult(0));
 }
Ejemplo n.º 3
0
 public AdapterTypeConfiguration(T adapter, AdapterSettingBuilder sb)
 {
     Adapter = adapter;
     AdapterSettingBuilder = sb;
 }