Skip to content

Commit

Permalink
Update naming Start StartNatsListeningAsync from StartNatsServerAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
quyvu01 committed Jan 5, 2025
1 parent 5f4761c commit 4f201c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RealTest/Service2/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
}, 128);

var app = builder.Build();
app.StartNatsServerAsync();
app.StartNatsListeningAsync();
app.Run();
2 changes: 1 addition & 1 deletion RealTest/Service3/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
}, 128);

var app = builder.Build();
app.StartNatsServerAsync();
app.StartNatsListeningAsync();
app.Run();
2 changes: 1 addition & 1 deletion src/OfX.Nats/Extensions/NatsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ public static void AddNats(this OfXRegister ofXRegister, Action<NatsClientHost>
private static void ClientsRegister(IServiceCollection serviceCollection) =>
serviceCollection.AddScoped(typeof(INatsRequester<>), typeof(NatsRequester<>));

public static void StartNatsServerAsync(this IHost host) =>
public static void StartNatsListeningAsync(this IHost host) =>
NatsServersListening.StartAsync(host.Services);
}

0 comments on commit 4f201c2

Please sign in to comment.