Beispiel #1
0
 public Task <SourceConfig?> GetConfig(
     [Parent] Flow flow,
     [Service] IConfigurationDatabase configurationDatabase)
 => configurationDatabase.GetFlowSource(flow.Name);
Beispiel #2
0
 public async Task <Flow?> GetFlow(
     string name,
     [Service] IConfigurationDatabase configurationDatabase)
 => (await configurationDatabase.GetFlowSource(name)) is null
         ? null
         : new Flow(name);