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