diff --git a/SpotifyAPI.Web.Examples/Example.BlazorWASM/Example.BlazorWASM.csproj b/SpotifyAPI.Web.Examples/Example.BlazorWASM/Example.BlazorWASM.csproj index 4999ca13..f2134587 100644 --- a/SpotifyAPI.Web.Examples/Example.BlazorWASM/Example.BlazorWASM.csproj +++ b/SpotifyAPI.Web.Examples/Example.BlazorWASM/Example.BlazorWASM.csproj @@ -6,7 +6,7 @@ - + diff --git a/SpotifyAPI.Web.Examples/Example.BlazorWASM/Program.cs b/SpotifyAPI.Web.Examples/Example.BlazorWASM/Program.cs index e6951102..688cb5f7 100644 --- a/SpotifyAPI.Web.Examples/Example.BlazorWASM/Program.cs +++ b/SpotifyAPI.Web.Examples/Example.BlazorWASM/Program.cs @@ -1,25 +1,21 @@ using System; using System.Net.Http; -using System.Collections.Generic; using System.Threading.Tasks; -using System.Text; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; -using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; namespace Example.BlazorWASM { - public class Program + public class Program + { + public static async Task Main(string[] args) { - public static async Task Main(string[] args) - { - var builder = WebAssemblyHostBuilder.CreateDefault(args); - builder.RootComponents.Add("app"); + var builder = WebAssemblyHostBuilder.CreateDefault(args); + builder.RootComponents.Add("app"); - builder.Services.AddTransient(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); + builder.Services.AddTransient(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); - await builder.Build().RunAsync(); - } + await builder.Build().RunAsync(); } + } }