void PendingBindResTrigger(SmppBindRes ResponsePdu, Exception ProcessException) { foreach (SmppAsyncObject obj2 in PendingBind) { var e = new SmppAsyncBindResEventArgs(); e._State = obj2.State; e._ProcessException = ProcessException; e._RequestPdu = obj2.Request as SmppBindReq; e._ResponsePdu = ResponsePdu; var callback = obj2.Callback as SmppBindResHandler; callback(this, e); } PendingBind.Clear(); }
void PendingBindResTrigger(SmppBindRes ResponsePdu, Exception ProcessException) { foreach (SmppAsyncObject obj2 in PendingBind) { var e = new SmppAsyncBindResEventArgs(); e._State = obj2.State; e._ProcessException = ProcessException; e._RequestPdu = obj2.Request as SmppBindReq; e._ResponsePdu = ResponsePdu; var callback = obj2.Callback as SmppBindResHandler; callback(this, e); } PendingBind.Clear(); }