From 608da4c78b666fefcc7b6e1d74e6d3f7d25e0e25 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Mon, 19 Feb 2018 14:22:03 +0000 Subject: [PATCH] Specifying entrypoint: Add tests and other stylistic tweaks --- samples/StandaloneApp/Program.cs | 10 +----- samples/StandaloneApp/StandaloneApp.csproj | 1 - .../src/Boot.ts | 18 +++++++---- .../src/Platform/Mono/MonoPlatform.ts | 32 ++++++++----------- .../src/Platform/Platform.ts | 2 +- .../Core/FileSystem/ClientFileProvider.cs | 25 +++++++++------ .../Core/FileSystem/IndexHtmlFileProvider.cs | 2 +- .../IndexHtmlFileProviderTest.cs | 11 ++++--- .../ReferencedAssemblyFileProviderTest.cs | 2 +- .../Tests/StandaloneAppTest.cs | 4 +-- 10 files changed, 53 insertions(+), 54 deletions(-) diff --git a/samples/StandaloneApp/Program.cs b/samples/StandaloneApp/Program.cs index c5a4bbba2d..1244342d11 100644 --- a/samples/StandaloneApp/Program.cs +++ b/samples/StandaloneApp/Program.cs @@ -5,15 +5,7 @@ using Microsoft.AspNetCore.Blazor.Browser.Rendering; namespace StandaloneApp { - public class ProgramX - { - public static void Main(string[] args) - { - new BrowserRenderer().AddComponent("app"); - } - } - - public class ProgramY + public class Program { public static void Main(string[] args) { diff --git a/samples/StandaloneApp/StandaloneApp.csproj b/samples/StandaloneApp/StandaloneApp.csproj index 2c16743b73..558911261e 100644 --- a/samples/StandaloneApp/StandaloneApp.csproj +++ b/samples/StandaloneApp/StandaloneApp.csproj @@ -6,7 +6,6 @@ dotnet run --project ../../src/Microsoft.AspNetCore.Blazor.DevHost serve - StandaloneApp.ProgramY diff --git a/src/Microsoft.AspNetCore.Blazor.Browser.JS/src/Boot.ts b/src/Microsoft.AspNetCore.Blazor.Browser.JS/src/Boot.ts index 6a77d6a3dc..1c62684cc4 100644 --- a/src/Microsoft.AspNetCore.Blazor.Browser.JS/src/Boot.ts +++ b/src/Microsoft.AspNetCore.Blazor.Browser.JS/src/Boot.ts @@ -6,13 +6,9 @@ import './GlobalExports'; async function boot() { // Read startup config from the