コード例 #1
0
ファイル: QueryActor.cs プロジェクト: neouser99/Magnum
        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,
            });
        }