示例#1
0
        public override async Task TransferFundsOperationCSVServerStream(Custom request, IServerStreamWriter <Custom> responseStream, ServerCallContext context)
        {
            string response = string.Empty;

            IDTPGateway.IDTPGateway _gateway = new IDTPGateway.IDTPGateway();
            try {
                response = _gateway.TFInputCommaSeparated(request.Stringvalue);
            }
            catch (Exception e) {
                DBUtility.WriteData(Guid.NewGuid().ToString(), "Error: " + e.Message, "DockerName", "2020-01-01", "2020-01-01");
            }
            await responseStream.WriteAsync(new Custom { Stringvalue = response });
        }
示例#2
0
        public override Task <Custom> TransferFundsOperationFlatXml(Custom request, ServerCallContext context)
        {
            string response = string.Empty;

            IDTPGateway.IDTPGateway _gateway = new IDTPGateway.IDTPGateway();
            try {
                response = _gateway.TFXMLtoDTOWithSerializerAddTran(request.Stringvalue);
            }
            catch (Exception e) {
                DBUtility.WriteData(Guid.NewGuid().ToString(), "Error: " + e.Message, "DockerName", "2020-01-01", "2020-01-01");
            }

            return(Task.FromResult(new Custom {
                Stringvalue = response
            }));
        }
示例#3
0
        public override Task <Custom> TransferFundsOperationFlatXmlWithoutStream(Custom request, ServerCallContext context)
        {
            string response = string.Empty;

            IDTPGateway.IDTPGateway _gateway = new IDTPGateway.IDTPGateway();
            try {
                response = _gateway.TFXMLtoDTOWithSerializerAddTran(request.Stringvalue);
            }
            catch (Exception e) {
                response = e.Message;
            }

            return(Task.FromResult(new Custom {
                Stringvalue = response
            }));
        }