Пример #1
0
 public static int Async_PostComment(
     PostCommentPacket packet,
     BokuAsyncCallback callback,
     object param)
 {
     try
     {
         AsyncState state = new AsyncState();
         state.callback = callback;
         state.param    = param;
         Trans.PostComment trans = new Trans.PostComment(
             Callback_PostComment,
             state,
             packet);
         IRegister(state.transId);
         if (trans.Send())
         {
             return(state.transId);
         }
         else
         {
             return(0);
         }
     }
     catch
     {
         return(0);
     }
 }
Пример #2
0
 public PostComment(
     SendOrPostCallback callback,
     object userState,
     PostCommentPacket packet)
     : base(true, callback, userState)
 {
     this.packet = packet;
 }