public static async ETTask <T> UpdateById <T>(this CacheProxyComponent self, T entity) where T : ComponentWithId
 {
     // TODO:待觀察的Bug
     try
     {
         return(await self.UpdateById <T>(entity.Id, entity.ToBsonDocument().ToJson()));
     }
     catch (Exception ex)
     {
         Log.Error($"Type:{entity.GetType().Name}, Entity:{entity.Id}, Message:{ex.Message}, Stack:{ex.StackTrace}");
     }
     return(null);
 }
 public static async ETTask <T> UpdateById <T>(this CacheProxyComponent self, long id, BsonDocument updatedData) where T : ComponentWithId
 {
     return(await self.UpdateById <T>(id, updatedData.ToJson()));
 }