예제 #1
0
 public async Task <Configuration?> GetConfiguration(
     string connector,
     string name,
     [Service] IConfigurationDatabase configurationDatabase)
 => (await configurationDatabase.GetConfigurationSource(connector, name)) is null
         ? null
         : new Configuration(connector, name);
예제 #2
0
 public async Task <SourceConfig?> GetConfig(
     [Parent] Configuration configuration,
     [Service] IConfigurationDatabase configurationDatabase)
 => await configurationDatabase.GetConfigurationSource(configuration.Connector, configuration.Name);