未验证 提交 0a6ff515 编写于 作者: T tanghai 提交者: GitHub

Merge pull request #49 from Vamkenn/master

修复DBCache创建DBQueryTask时因Awake的泛型Component与ComponentWithId不对应的错误
......@@ -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.
先完成此消息的编辑!
想要评论请 注册