mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-05-03 22:01:27 +08:00
重构了运行逻辑。上下文使用对象池封装,节点方法调用时间传递CancellationTokenSource用来中止任务
This commit is contained in:
@@ -49,7 +49,7 @@ namespace Serein.Library.Api
|
||||
/// <param name="key">登记使用的名称</param>
|
||||
/// <param name="instance">实例对象</param>
|
||||
/// <returns>是否注册成功</returns>
|
||||
bool RegisterInstance(string key, object instance);
|
||||
/// bool RegisterInstance(string key, object instance);
|
||||
|
||||
/// <summary>
|
||||
/// 获取类型的实例。如果需要获取的类型以“接口-实现类”的方式注册,请使用接口的类型。
|
||||
@@ -67,7 +67,7 @@ namespace Serein.Library.Api
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="key">登记实例时使用的Key</param>
|
||||
/// <returns></returns>
|
||||
T Get<T>(string key);
|
||||
/// T Get<T>(string key);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user