Skip to content

Commit 3598561

Browse files
committed
resolved #184
1 parent 0d7d495 commit 3598561

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/CatLib.Core/CatLib/App.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ public static void Terminate()
8787
/// 注册服务提供者
8888
/// </summary>
8989
/// <param name="provider">服务提供者</param>
90-
public static void Register(IServiceProvider provider)
90+
/// <param name="force">为true则强制注册</param>
91+
public static void Register(IServiceProvider provider, bool force = false)
9192
{
92-
Handler.Register(provider);
93+
Handler.Register(provider, force);
9394
}
9495

9596
/// <summary>

0 commit comments

Comments
 (0)