From 135f1f2e7c55a0670b34feff520b27cbfd745569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=B8nner=C3=B8d=20Madsen?= Date: Thu, 7 Nov 2019 08:38:57 +0100 Subject: [PATCH] Updating README.md after changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tobias Lønnerød Madsen --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f3f9e8f..8c44b1c 100644 --- a/README.md +++ b/README.md @@ -215,13 +215,13 @@ context.Response.StatusCode = (int)HttpStatusCode.OK; ### HTTP - Microsoft.AspNetCore.Http.HttpRequest On the server-side, you can extract a CloudEvent from the server-side `HttpRequest` -with the `ToCloudEvent()` extension. +with the `ReadCloudEventAsync()` extension. ```C# -var cloudEvent = HttpContext.Request.ToCloudEvent(); +var cloudEvent = await HttpContext.Request.ReadCloudEventAsync(); ``` -### HTTP - ASP.Net Core MVC +### HTTP - ASP.NET Core MVC If you would like to deserialize CloudEvents in actions directly, you can register the `CloudEventInputFormatter` in the MVC options: