Beispiel #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,
                });
        }
Beispiel #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,
            });
        }