public void InitToErrorConnect(MSGError.ErrorTypeEnum errType, int errCode, string errMsg) { Cleanup(); Error = new MSGError(); EventType = MSGEventType.ErrorConnect; Error.ErrorType = errType; Error.ErrorCode = errCode; Error.ErrorMessage = errMsg; }
public void EnqueueErrorConnectEvent(MSGError.ErrorTypeEnum errType, int errCode, string errMsg) { EnqueueEvent( (e) => e.InitToErrorConnect(errType, errCode, errMsg) ); }