Skip to content

Commit

Permalink
Change TinyEventBus life
Browse files Browse the repository at this point in the history
  • Loading branch information
agile.zhou committed May 26, 2024
1 parent 6e870a7 commit 71cf5e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public static class ServiceCollectionExt
{
public static IServiceCollection AddTinyEventBus(this IServiceCollection sc)
{
sc.AddScoped<ITinyEventBus, TinyEventBus>(sp=> new TinyEventBus(sc));
sc.AddSingleton<ITinyEventBus, TinyEventBus>(sp => new TinyEventBus(sc));
return sc;
}
}
Expand Down

0 comments on commit 71cf5e4

Please sign in to comment.