Skip to content

Commit 98e6ba0

Browse files
committed
resolved #64
1 parent 92cf176 commit 98e6ba0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/CatLib.Core/Support/Container/BindData.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ public IBindData OnRelease(Action<IBindData, object> closure)
127127
Guard.NotNull(closure, nameof(closure));
128128
if (!IsStatic)
129129
{
130-
throw new LogicException($"Service [{Service}] is not Singleton(Static) Bind , Can not call {nameof(OnRelease)}().");
130+
throw new LogicException(
131+
$"Service [{Service}] is not Singleton(Static) Bind , Can not call {nameof(OnRelease)}().");
131132
}
132133
lock (SyncRoot)
133134
{

src/CatLib.Core/Support/Container/Bindable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public abstract class Bindable : IBindable
2121
/// <summary>
2222
/// 当前绑定的名字
2323
/// </summary>
24-
public string Service { get; private set; }
24+
public string Service { get; }
2525

2626
/// <summary>
2727
/// 父级容器

0 commit comments

Comments
 (0)