Exemplo n.º 1
0
 public COMDT_ACNT_ASKFORREQ_INFO()
 {
     this.stReqUniq     = (COMDT_ACNT_UNIQ)ProtocolObjectPool.Get(COMDT_ACNT_UNIQ.CLASS_ID);
     this.szAcntName    = new byte[64];
     this.szAcntHeadUrl = new byte[256];
     this.stReqItem     = (COMDT_ITEM_SIMPINFO)ProtocolObjectPool.Get(COMDT_ITEM_SIMPINFO.CLASS_ID);
     this.stMsgInfo     = (COMDT_ACNT_ASKFORMSG_INFO)ProtocolObjectPool.Get(COMDT_ACNT_ASKFORMSG_INFO.CLASS_ID);
 }
 public override void OnRelease()
 {
     if (this.stAskforUniq != null)
     {
         this.stAskforUniq.Release();
         this.stAskforUniq = null;
     }
     if (this.stItemInfo != null)
     {
         this.stItemInfo.Release();
         this.stItemInfo = null;
     }
     if (this.stMsgInfo != null)
     {
         this.stMsgInfo.Release();
         this.stMsgInfo = null;
     }
 }
Exemplo n.º 3
0
 public override void OnRelease()
 {
     if (this.stReqUniq != null)
     {
         this.stReqUniq.Release();
         this.stReqUniq = null;
     }
     this.dwReqTime = 0u;
     if (this.stReqItem != null)
     {
         this.stReqItem.Release();
         this.stReqItem = null;
     }
     if (this.stMsgInfo != null)
     {
         this.stMsgInfo.Release();
         this.stMsgInfo = null;
     }
 }
 public CSPKG_CMD_ASKFORREQ_SEND()
 {
     this.stAskforUniq = (COMDT_ACNT_UNIQ)ProtocolObjectPool.Get(COMDT_ACNT_UNIQ.CLASS_ID);
     this.stItemInfo   = (COMDT_ITEM_SIMPINFO)ProtocolObjectPool.Get(COMDT_ITEM_SIMPINFO.CLASS_ID);
     this.stMsgInfo    = (COMDT_ACNT_ASKFORMSG_INFO)ProtocolObjectPool.Get(COMDT_ACNT_ASKFORMSG_INFO.CLASS_ID);
 }
 public override void OnUse()
 {
     this.stAskforUniq = (COMDT_ACNT_UNIQ)ProtocolObjectPool.Get(COMDT_ACNT_UNIQ.CLASS_ID);
     this.stItemInfo   = (COMDT_ITEM_SIMPINFO)ProtocolObjectPool.Get(COMDT_ITEM_SIMPINFO.CLASS_ID);
     this.stMsgInfo    = (COMDT_ACNT_ASKFORMSG_INFO)ProtocolObjectPool.Get(COMDT_ACNT_ASKFORMSG_INFO.CLASS_ID);
 }