Пример #1
0
        public static Response0810 ProcessRequest(Request0800 request)
        {
            Console.WriteLine("==== Begin: Request ====");
            Console.WriteLine(Util.GetReadableStringFromModel(request));
            Console.WriteLine("==== End: Request ====");

            Response0810 resp = new Response0810
            {
                TransmissionDateTime = DateTime.Now,

                /*SystemAuditTraceNumber = request.SystemAuditTraceNumber,
                 * AdditionalData = request.AdditionalData,
                 * NetworkManagementInformationCode = request.NetworkManagementInformationCode,*/
                ResponseCode = "00",
                MessageAuthenticationCode = MessageUtility.StringToHex("0102030405060708")
            };

            return(resp);
        }
Пример #2
0
        public Response0810 Execute(Request0800 request)
        {
            if (request == null)
            {
                if (ProcessErrorNotification != null)
                {
                    ProcessErrorNotification();
                }
                return(null);
            }

            Response0810 response = new Response0810();

            if (request.ProcessingCode.TransactionType == TransactionTypeCodeBytes.LOGON)
            {
                if (ProcessLogon != null)
                {
                    response = new RespLogon0810();
                    ProcessLogon(new ReqLogon0800(request), (RespLogon0810)response);
                }
            }
            //ProcessLogon = null;
            return(response);
        }