コード例 #1
0
 public static IVostokConfigurationSourcesBuilder AddClusterConfig([NotNull] this IVostokConfigurationSourcesBuilder builder, [NotNull] string prefix)
 => builder.AddSource(ccClient => new ClusterConfigSourceWithParsers(ccClient, prefix));
コード例 #2
0
 public static IVostokConfigurationSourcesBuilder AddXmlFile([NotNull] this IVostokConfigurationSourcesBuilder builder, [NotNull] string path)
 => builder.AddSource(new XmlFileSource(path));
コード例 #3
0
 public static IVostokConfigurationSourcesBuilder AddInMemoryObject([NotNull] this IVostokConfigurationSourcesBuilder builder, [NotNull] object @object)
 => builder.AddSource(new ObjectSource(@object));
コード例 #4
0
 public static IVostokConfigurationSourcesBuilder AddCommandLineArguments([NotNull] this IVostokConfigurationSourcesBuilder builder, [NotNull] string[] args, [CanBeNull] string defaultKey, [CanBeNull] string defaultValue)
 => builder.AddSource(new CommandLineSource(args, defaultKey, defaultValue));
コード例 #5
0
 public static IVostokConfigurationSourcesBuilder AddCommandLineArguments([NotNull] this IVostokConfigurationSourcesBuilder builder, [NotNull] string[] args)
 => builder.AddSource(new CommandLineSource(args));
コード例 #6
0
 public static IVostokConfigurationSourcesBuilder AddEnvironmentVariables([NotNull] this IVostokConfigurationSourcesBuilder builder)
 => builder.AddSource(new EnvironmentVariablesSource());