Skip to content

Commit cb2e0cc

Browse files
committed
run formatter
1 parent f6513bc commit cb2e0cc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+138
-138
lines changed

SpotifyAPI.Web.Auth/BrowserUtil.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
using System;
12
using System.Diagnostics;
23
using System.Runtime.InteropServices;
3-
using System;
44

55
namespace SpotifyAPI.Web.Auth
66
{

SpotifyAPI.Web.Auth/EmbedIOAuthServer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using System.Reflection;
2-
using System.Threading;
3-
using System.Web;
1+
using System;
42
using System.Globalization;
3+
using System.Reflection;
54
using System.Text;
6-
using System;
5+
using System.Threading;
76
using System.Threading.Tasks;
7+
using System.Web;
88
using EmbedIO;
99
using EmbedIO.Actions;
1010

SpotifyAPI.Web.Examples/Example.ASP/Pages/Index.cshtml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Threading.Tasks;
1+
using System.Threading.Tasks;
22
using Microsoft.AspNetCore.Mvc;
33
using Microsoft.AspNetCore.Mvc.RazorPages;
44
using SpotifyAPI.Web;

SpotifyAPI.Web.Examples/Example.ASP/Pages/Profile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Threading.Tasks;
1+
using System.Threading.Tasks;
22
using Microsoft.AspNetCore.Authentication;
33
using Microsoft.AspNetCore.Mvc;
44
using Microsoft.AspNetCore.Mvc.RazorPages;

SpotifyAPI.Web.Examples/Example.ASPBlazor/Data/WeatherForecast.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
namespace Example.ASPBlazor.Data
44
{
5-
public class WeatherForecast
6-
{
7-
public DateTime Date { get; set; }
5+
public class WeatherForecast
6+
{
7+
public DateTime Date { get; set; }
88

9-
public int TemperatureC { get; set; }
9+
public int TemperatureC { get; set; }
1010

11-
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
11+
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
1212

13-
public string Summary { get; set; }
14-
}
13+
public string Summary { get; set; }
14+
}
1515
}

SpotifyAPI.Web.Examples/Example.ASPBlazor/Data/WeatherForecastService.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44

55
namespace Example.ASPBlazor.Data
66
{
7-
public class WeatherForecastService
7+
public class WeatherForecastService
8+
{
9+
private static readonly string[] Summaries = new[]
810
{
9-
private static readonly string[] Summaries = new[]
10-
{
1111
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
1212
};
1313

14-
public Task<WeatherForecast[]> GetForecastAsync(DateTime startDate)
15-
{
16-
var rng = new Random();
17-
return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
18-
{
19-
Date = startDate.AddDays(index),
20-
TemperatureC = rng.Next(-20, 55),
21-
Summary = Summaries[rng.Next(Summaries.Length)]
22-
}).ToArray());
23-
}
14+
public Task<WeatherForecast[]> GetForecastAsync(DateTime startDate)
15+
{
16+
var rng = new Random();
17+
return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
18+
{
19+
Date = startDate.AddDays(index),
20+
TemperatureC = rng.Next(-20, 55),
21+
Summary = Summaries[rng.Next(Summaries.Length)]
22+
}).ToArray());
2423
}
24+
}
2525
}

SpotifyAPI.Web.Examples/Example.ASPBlazor/Program.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
namespace Example.ASPBlazor
55
{
66
public class Program
7+
{
8+
public static void Main(string[] args)
79
{
8-
public static void Main(string[] args)
9-
{
10-
CreateHostBuilder(args).Build().Run();
11-
}
12-
13-
public static IHostBuilder CreateHostBuilder(string[] args) =>
14-
Host.CreateDefaultBuilder(args)
15-
.ConfigureWebHostDefaults(webBuilder =>
16-
{
17-
webBuilder.UseStartup<Startup>();
18-
});
10+
CreateHostBuilder(args).Build().Run();
1911
}
12+
13+
public static IHostBuilder CreateHostBuilder(string[] args) =>
14+
Host.CreateDefaultBuilder(args)
15+
.ConfigureWebHostDefaults(webBuilder =>
16+
{
17+
webBuilder.UseStartup<Startup>();
18+
});
19+
}
2020
}

SpotifyAPI.Web.Examples/Example.ASPBlazor/Startup.cs

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,59 +2,59 @@
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Threading.Tasks;
5+
using Example.ASPBlazor.Data;
56
using Microsoft.AspNetCore.Builder;
67
using Microsoft.AspNetCore.Components;
78
using Microsoft.AspNetCore.Hosting;
89
using Microsoft.AspNetCore.HttpsPolicy;
910
using Microsoft.Extensions.Configuration;
1011
using Microsoft.Extensions.DependencyInjection;
1112
using Microsoft.Extensions.Hosting;
12-
using Example.ASPBlazor.Data;
1313

1414
namespace Example.ASPBlazor
1515
{
16-
public class Startup
16+
public class Startup
17+
{
18+
public Startup(IConfiguration configuration)
1719
{
18-
public Startup(IConfiguration configuration)
19-
{
20-
Configuration = configuration;
21-
}
20+
Configuration = configuration;
21+
}
2222

23-
public IConfiguration Configuration { get; }
23+
public IConfiguration Configuration { get; }
2424

25-
// This method gets called by the runtime. Use this method to add services to the container.
26-
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
27-
public void ConfigureServices(IServiceCollection services)
28-
{
29-
services.AddRazorPages();
30-
services.AddServerSideBlazor();
31-
services.AddSingleton<WeatherForecastService>();
32-
}
25+
// This method gets called by the runtime. Use this method to add services to the container.
26+
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
27+
public void ConfigureServices(IServiceCollection services)
28+
{
29+
services.AddRazorPages();
30+
services.AddServerSideBlazor();
31+
services.AddSingleton<WeatherForecastService>();
32+
}
3333

34-
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
35-
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
36-
{
37-
if (env.IsDevelopment())
38-
{
39-
app.UseDeveloperExceptionPage();
40-
}
41-
else
42-
{
43-
app.UseExceptionHandler("/Error");
44-
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
45-
app.UseHsts();
46-
}
34+
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
35+
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
36+
{
37+
if (env.IsDevelopment())
38+
{
39+
app.UseDeveloperExceptionPage();
40+
}
41+
else
42+
{
43+
app.UseExceptionHandler("/Error");
44+
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
45+
app.UseHsts();
46+
}
4747

48-
app.UseHttpsRedirection();
49-
app.UseStaticFiles();
48+
app.UseHttpsRedirection();
49+
app.UseStaticFiles();
5050

51-
app.UseRouting();
51+
app.UseRouting();
5252

53-
app.UseEndpoints(endpoints =>
54-
{
55-
endpoints.MapBlazorHub();
56-
endpoints.MapFallbackToPage("/_Host");
57-
});
58-
}
53+
app.UseEndpoints(endpoints =>
54+
{
55+
endpoints.MapBlazorHub();
56+
endpoints.MapFallbackToPage("/_Host");
57+
});
5958
}
59+
}
6060
}

SpotifyAPI.Web.Examples/Example.CLI.CustomHTML/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using System.Reflection;
21
using System;
32
using System.Collections.Generic;
3+
using System.Reflection;
44
using System.Threading.Tasks;
55
using SpotifyAPI.Web;
66
using SpotifyAPI.Web.Auth;

SpotifyAPI.Web.Examples/Example.CLI.PersistentConfig/Program.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
using System.IO;
2-
using System.Threading.Tasks;
31
using System;
4-
using SpotifyAPI.Web.Auth;
5-
using SpotifyAPI.Web;
62
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Threading.Tasks;
75
using Newtonsoft.Json;
8-
using static SpotifyAPI.Web.Scopes;
6+
using SpotifyAPI.Web;
7+
using SpotifyAPI.Web.Auth;
98
using Swan.Logging;
9+
using static SpotifyAPI.Web.Scopes;
1010

1111
namespace Example.CLI.PersistentConfig
1212
{

0 commit comments

Comments
 (0)