Пример #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> TransferFundsOperationCSV(Custom request, 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");
            }

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