/// <summary> /// Configures Consul Clustering. /// </summary> /// <param name="builder">The Orleans <see cref="IClientBuilder"/>.</param> /// <param name="configuration">The <see cref="IConfiguration"/> which binds to <see cref="ConsulOptions"/>.</param> /// <returns>The <see cref="IClientBuilder"/>.</returns> public static IClientBuilder ConfigureConsulClustering([NotNull] this IClientBuilder builder, [NotNull] IConfiguration configuration) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } return(builder.ConfigureConsulClustering(configuration.GetSection(ConsulOptions.DefaultSectionName))); }