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 }); }
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 })); }
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 })); }