Skip to content

Commit

Permalink
dotnet format style changes
Browse files Browse the repository at this point in the history
Mostly sorting usings
  • Loading branch information
StevenTCramer committed Dec 22, 2021
1 parent c3dcb80 commit 6909c95
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 31 deletions.
4 changes: 2 additions & 2 deletions Samples/Tutorial/Sample/Client/App.razor.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
namespace Sample.Client
{
using System.Threading.Tasks;
using BlazorState.Pipeline.ReduxDevTools;
using BlazorState.Features.JavaScriptInterop;
using BlazorState.Features.Routing;
using BlazorState.Pipeline.ReduxDevTools;
using Microsoft.AspNetCore.Components;
using System.Threading.Tasks;

public partial class App : ComponentBase
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace Sample.Client.Features.Counter
{
using System.Threading;
using System.Threading.Tasks;
using BlazorState;
using MediatR;
using System.Threading;
using System.Threading.Tasks;

public partial class CounterState
{
Expand Down
8 changes: 4 additions & 4 deletions Samples/Tutorial/Sample/Client/Program.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Sample.Client
{
using System;
using System.Net.Http;
using System.Threading.Tasks;
using BlazorState;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.DependencyInjection;
using BlazorState;
using System;
using System.Net.Http;
using System.Reflection;
using System.Threading.Tasks;

public class Program
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Sample.Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Sample.Shared;

namespace Sample.Server.Controllers
{
Expand Down
11 changes: 4 additions & 7 deletions Samples/Tutorial/Sample/Server/Pages/Error.cshtml.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;

namespace Sample.Server.Pages
{
Expand All @@ -24,9 +24,6 @@ public ErrorModel(ILogger<ErrorModel> logger)
_logger = logger;
}

public void OnGet()
{
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
}
public void OnGet() => RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
}
}
13 changes: 5 additions & 8 deletions Samples/Tutorial/Sample/Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Sample.Server
{
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static void Main(string[] args) => CreateHostBuilder(args).Build().Run();

public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
Expand Down
2 changes: 1 addition & 1 deletion Samples/Tutorial/Sample/Server/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.ResponseCompression;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
Expand Down
4 changes: 1 addition & 3 deletions Tests/TestApp/Client/App.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ public partial class App : ComponentBase
[Inject]
private RouteManager RouteManager { get; set; }

protected override async Task OnAfterRenderAsync(bool aFirstRender)
{
protected override async Task OnAfterRenderAsync(bool aFirstRender) =>
#if ReduxDevToolsEnabled
await ReduxDevToolsInterop.InitAsync();
#endif
await JsonRequestHandler.InitAsync();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
namespace TestApp.Client.Features.Counter.Components
{
using Microsoft.AspNetCore.Components;
using System;
using System.Globalization;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using TestApp.Client.Features.Base.Components;

public partial class CustomInput<T> : BaseInputComponent<T>
Expand Down

0 comments on commit 6909c95

Please sign in to comment.