Пример #1
0
 private static void UpdateRankBasis(IEntityProxy connection, long gID, string rankID, long score, string guildName)
 {
     if (FeatureMatrix.IsEnable("CharacterRank") && connection != null)
     {
         UpdateRankBasis op = new UpdateRankBasis(gID, rankID, score, guildName);
         connection.RequestOperation(op);
     }
 }
Пример #2
0
 private static void UpdateRankBasis(Service service, IEntity entity, long cID, string rankID, long score)
 {
     if (FeatureMatrix.IsEnable("CharacterRank") && service != null && entity != null)
     {
         IEntityProxy connection = service.Connect(entity, new Location
         {
             ID       = cID,
             Category = "RankService.RankService"
         });
         UpdateRankBasis updateRankBasis = new UpdateRankBasis(cID, rankID, score, 0L);
         updateRankBasis.OnFail += delegate(Operation _)
         {
         };
         updateRankBasis.OnComplete += delegate(Operation _)
         {
             connection.Close();
         };
         connection.ConnectionSucceeded += delegate(object _, EventArgs <IEntityProxy> __)
         {
             connection.RequestOperation(updateRankBasis);
         };
     }
 }