Commit b167dbde authored by yangxiaodong's avatar yangxiaodong

fix error name.

parent 33fde860
...@@ -8,13 +8,13 @@ namespace Microsoft.Extensions.DependencyInjection ...@@ -8,13 +8,13 @@ namespace Microsoft.Extensions.DependencyInjection
{ {
public static CapOptions UseKafka(this CapOptions options, string bootstrapServers) public static CapOptions UseKafka(this CapOptions options, string bootstrapServers)
{ {
return options.UseRabbitMQ(opt => return options.UseKafka(opt =>
{ {
opt.Servers = bootstrapServers; opt.Servers = bootstrapServers;
}); });
} }
public static CapOptions UseRabbitMQ(this CapOptions options, Action<KafkaOptions> configure) public static CapOptions UseKafka(this CapOptions options, Action<KafkaOptions> configure)
{ {
if (configure == null) throw new ArgumentNullException(nameof(configure)); if (configure == null) throw new ArgumentNullException(nameof(configure));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment