public void Process(ThrottleChanged @event) { _logger.Information($"Throttle Changed : {@event.EngineA} - {@event.EngineB} - {@event.Target}"); var actualThrottle = @event.Target / 100f; //var request = (HttpWebRequest)WebRequest.Create($"http://{_ipAddress}:8080?engine={@event.Engine}&throttle={actualThrottle}"); //request.GetResponse(); var hub = _hubs.Get <VesselOrientationHub>(); if (@event.EngineA) { hub.ThrottleChanged(0, @event.Target); } if (@event.EngineB) { hub.ThrottleChanged(1, @event.Target); } }
public void Process(ThrottleChanged @event) { _logger.Information($"Throttle Changed : {@event.Engine} - {@event.Target}"); }
public void Process(ThrottleChanged @event) { //_logger.Information($"Throttle Changed : {@event.Engine} - {@event.Target}"); //var request = (HttpWebRequest)WebRequest.Create($"http://10.75.3.38:8080?engine={@event.Engine}&throttle={@event.Target}"); //request.GetResponse(); }