public Task PublishTopicEvent([FromBody] Car car) { var evt = new ExampleTopicEvent(car); //evt.SetContentType(SerializerTypes.Binary); return(_messagingSrv.PublishAsync(evt)); }
public void OnAudi(ExampleTopicEvent topicEvt) { Console.WriteLine($"Handler: OnAudi: {topicEvt.ToIndentedJson()}"); topicEvt.SetAcknowledged(); }
public void OnVwJetta(ExampleTopicEvent topicEvt) { Console.WriteLine($"Handler: OnVwJetta: {topicEvt.ToIndentedJson()}"); }