提交 de14fc2a 编写于 作者: V Vamkenn

修复DBCache创建DBQueryTask时因Awake的泛型Component与ComponentWithId不对应的错误

上级 39d22ce1
......@@ -5,9 +5,9 @@ using MongoDB.Driver;
namespace ETModel
{
[ObjectSystem]
public class DBQueryTaskSystem : AwakeSystem<DBQueryTask, string, TaskCompletionSource<Component>>
public class DBQueryTaskSystem : AwakeSystem<DBQueryTask, string, TaskCompletionSource<ComponentWithId>>
{
public override void Awake(DBQueryTask self, string collectionName, TaskCompletionSource<Component> tcs)
public override void Awake(DBQueryTask self, string collectionName, TaskCompletionSource<ComponentWithId> tcs)
{
self.CollectionName = collectionName;
self.Tcs = tcs;
......@@ -18,7 +18,7 @@ namespace ETModel
{
public string CollectionName { get; set; }
public TaskCompletionSource<Component> Tcs { get; set; }
public TaskCompletionSource<ComponentWithId> Tcs { get; set; }
public override async Task Run()
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册