TrainNotifier.Console.WebSocketServer.NMSWrapper.SendStanoxData C# (CSharp) Method

SendStanoxData() private static method

private static SendStanoxData ( UserContextData>.KeyValuePair uc, IEnumerable evtData ) : void
uc UserContextData>.KeyValuePair
evtData IEnumerable
return void
        private static void SendStanoxData(KeyValuePair<UserContext, UserContextData> uc, IEnumerable<dynamic> evtData)
        {
            var data = evtData
                .Where(e => e.body.loc_stanox == uc.Value.StateArgs)
                .Select(e => e);

            uc.Key.Send(JsonConvert.SerializeObject(new CommandResponse<IEnumerable<dynamic>>
            {
                Command = "substanoxupdate",
                Args = uc.Value.StateArgs,
                Response = data
            }));
        }