Просмотр исходного кода

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

Vamkenn 7 лет назад
Родитель
Сommit
de14fc2a94
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      Server/Model/Module/DB/DBQueryTask.cs

+ 3 - 3
Server/Model/Module/DB/DBQueryTask.cs

@@ -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()
 		{