Skip to content

Instantly share code, notes, and snippets.

@kshitijcode
Created July 7, 2021 12:08
Show Gist options
  • Select an option

  • Save kshitijcode/eccddcdd969431f4b2ee8daa81c2952c to your computer and use it in GitHub Desktop.

Select an option

Save kshitijcode/eccddcdd969431f4b2ee8daa81c2952c to your computer and use it in GitHub Desktop.
[Topic("pubsub", "dapreventhub")]
[HttpPost("/receiver")]
public async Task<IActionResult> Subscriber(WeatherChange weatherChange)
{
// Deserialize incoming order summary
_logger.LogInformation("Received Weather: {@WeatherChange}", weatherChange);
return Ok();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment