From 4bd3cd98d6526cc24ab9ac0d25a2c6c09f1b032f Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Wed, 28 Feb 2018 11:27:37 +0000 Subject: [PATCH] Simplify apps by moving some commonly used types into Microsoft.AspNetCore.Blazor namespace --- samples/StandaloneApp/App.cshtml | 3 +-- samples/StandaloneApp/Pages/FetchData.cshtml | 3 +-- samples/StandaloneApp/Pages/_ViewImports.cshtml | 2 +- samples/StandaloneApp/Shared/MainLayout.cshtml | 3 +-- samples/StandaloneApp/Shared/NavMenu.cshtml | 3 +-- samples/StandaloneApp/_ViewImports.cshtml | 5 +++++ .../ScopeStack.cs | 2 +- .../{RenderTree => }/RenderFragment.cs | 4 +++- .../{RenderTree => }/UIEventArgs.cs | 2 +- .../{RenderTree => }/UIEventHandler.cs | 2 +- .../RazorCompilerTest.cs | 2 +- test/testapps/BasicTestApp/KeyPressEventComponent.cshtml | 2 +- test/testapps/BasicTestApp/RenderFragmentToggler.cshtml | 2 +- 13 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 samples/StandaloneApp/_ViewImports.cshtml rename src/Microsoft.AspNetCore.Blazor/{RenderTree => }/RenderFragment.cs (86%) rename src/Microsoft.AspNetCore.Blazor/{RenderTree => }/UIEventArgs.cs (96%) rename src/Microsoft.AspNetCore.Blazor/{RenderTree => }/UIEventHandler.cs (87%) diff --git a/samples/StandaloneApp/App.cshtml b/samples/StandaloneApp/App.cshtml index c115391ee3..00b1330e12 100644 --- a/samples/StandaloneApp/App.cshtml +++ b/samples/StandaloneApp/App.cshtml @@ -1,5 +1,4 @@ -@using Microsoft.AspNetCore.Blazor.Routing - diff --git a/samples/StandaloneApp/Pages/FetchData.cshtml b/samples/StandaloneApp/Pages/FetchData.cshtml index e426907457..2cc8cbfcb6 100644 --- a/samples/StandaloneApp/Pages/FetchData.cshtml +++ b/samples/StandaloneApp/Pages/FetchData.cshtml @@ -1,5 +1,4 @@ -@using Microsoft.AspNetCore.Blazor -@using Microsoft.AspNetCore.Blazor.Browser.Services.Temporary +@using Microsoft.AspNetCore.Blazor.Browser.Services.Temporary @inject HttpClient Http

Weather forecast

diff --git a/samples/StandaloneApp/Pages/_ViewImports.cshtml b/samples/StandaloneApp/Pages/_ViewImports.cshtml index 55ec034759..7dabd59f01 100644 --- a/samples/StandaloneApp/Pages/_ViewImports.cshtml +++ b/samples/StandaloneApp/Pages/_ViewImports.cshtml @@ -1 +1 @@ -@(Layout()) +@(Layout()) diff --git a/samples/StandaloneApp/Shared/MainLayout.cshtml b/samples/StandaloneApp/Shared/MainLayout.cshtml index e9fc4a1131..0d01343695 100644 --- a/samples/StandaloneApp/Shared/MainLayout.cshtml +++ b/samples/StandaloneApp/Shared/MainLayout.cshtml @@ -1,5 +1,4 @@ -@using Microsoft.AspNetCore.Blazor.RenderTree -@(Implements()) +@(Implements())
diff --git a/samples/StandaloneApp/Shared/NavMenu.cshtml b/samples/StandaloneApp/Shared/NavMenu.cshtml index f11d7ec1c2..17f6de6f62 100644 --- a/samples/StandaloneApp/Shared/NavMenu.cshtml +++ b/samples/StandaloneApp/Shared/NavMenu.cshtml @@ -1,5 +1,4 @@ -@using Microsoft.AspNetCore.Blazor.Routing -