示例#1
0
        private void ProcessRequest(QueryInputModel inputModel)
        {
            _log.Debug(x => x.Write("Query[{0}]: {1}", Thread.CurrentThread.ManagedThreadId, inputModel.ZipCode));

            inputModel.OutputChannel.Send(new QueryOutputModel
                {
                    City = "Tulsa",
                    State = "OK",
                    YourIp = inputModel.UserHostAddress,
                });
        }
示例#2
0
        private void ProcessRequest(QueryInputModel inputModel)
        {
            _log.Debug(x => x.Write("Query[{0}]: {1}", Thread.CurrentThread.ManagedThreadId, inputModel.ZipCode));

            inputModel.OutputChannel.Send(new QueryOutputModel
            {
                City   = "Tulsa",
                State  = "OK",
                YourIp = inputModel.UserHostAddress,
            });
        }