From 97b151f2c29d41db2a7b4a4653e7f6d95fdef6cb Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Wed, 7 Jan 2015 16:25:42 -0800 Subject: [PATCH] Handle ReadFormAsync breaking change. --- src/Microsoft.AspNet.Diagnostics.Elm/ElmPageMiddleware.cs | 2 +- .../MigrationsEndPointMiddleware.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.AspNet.Diagnostics.Elm/ElmPageMiddleware.cs b/src/Microsoft.AspNet.Diagnostics.Elm/ElmPageMiddleware.cs index 0c4dab97b4..cf02d4abd3 100644 --- a/src/Microsoft.AspNet.Diagnostics.Elm/ElmPageMiddleware.cs +++ b/src/Microsoft.AspNet.Diagnostics.Elm/ElmPageMiddleware.cs @@ -93,7 +93,7 @@ namespace Microsoft.AspNet.Diagnostics.Elm NamePrefix = string.Empty }; var isRedirect = false; - var form = await context.Request.GetFormAsync(); + var form = await context.Request.ReadFormAsync(); if (form.ContainsKey("clear")) { _store.Clear(); diff --git a/src/Microsoft.AspNet.Diagnostics.Entity/MigrationsEndPointMiddleware.cs b/src/Microsoft.AspNet.Diagnostics.Entity/MigrationsEndPointMiddleware.cs index 42a0cbb87f..f6c8f568da 100644 --- a/src/Microsoft.AspNet.Diagnostics.Entity/MigrationsEndPointMiddleware.cs +++ b/src/Microsoft.AspNet.Diagnostics.Entity/MigrationsEndPointMiddleware.cs @@ -78,7 +78,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity private static async Task GetDbContext(HttpContext context, ILogger logger) { - var form = await context.Request.GetFormAsync().WithCurrentCulture(); + var form = await context.Request.ReadFormAsync().WithCurrentCulture(); var contextTypeName = form["context"]; if (string.IsNullOrWhiteSpace(contextTypeName)) {