Browse Source

fix error name.

master
yangxiaodong 7 years ago
parent
commit
b167dbde9f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/DotNetCore.CAP.Kafka/CAP.Options.Extensions.cs

+ 2
- 2
src/DotNetCore.CAP.Kafka/CAP.Options.Extensions.cs View File

@@ -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));




Loading…
Cancel
Save