public void Build(IWorkflowBuilder builder) { builder .MessageReceived(_connectionString, "Podcasts.Weather") .WriteLine(context => { var message = context.GetInput <string>(); return($"Received a weather update saying {message}"); }); }
public void Build(IWorkflowBuilder builder) { builder .MessageReceived("/temperature", _host, _port, _username, _password, _qos) .WriteLine(context => { var message = context.GetInput <string>(); return($"Received a temperature update saying {message}!"); }); }