Skip to content

Commit b5faad5

Browse files
committed
Run dotnet format on the repository
1 parent 4c9457a commit b5faad5

File tree

3,482 files changed

+42489
-39143
lines changed

Some content is hidden

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

3,482 files changed

+42489
-39143
lines changed

BFF/v2/Angular/Angular.Api/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
14
using Angular.Api;
25

36
var builder = WebApplication.CreateBuilder(args);

BFF/v2/Angular/Angular.Api/ToDoEndpointGroup.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
using Microsoft.AspNetCore.Http.Extensions;
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
24
using System.Security.Claims;
5+
using Microsoft.AspNetCore.Http.Extensions;
36

47
namespace Angular.Api;
58

@@ -26,11 +29,11 @@ public static RouteGroupBuilder ToDoGroup(this RouteGroupBuilder group)
2629
{
2730
model.Id = ToDo.NewId();
2831
model.User = $"{user.FindFirst("sub")?.Value} ({user.FindFirst("name")?.Value})";
29-
32+
3033
data.Add(model);
31-
34+
3235
var url = new Uri($"{context.Request.GetEncodedUrl()}/{model.Id}");
33-
36+
3437
return Results.Created(url, model);
3538
});
3639

@@ -73,4 +76,4 @@ public static int NewId()
7376
public DateTimeOffset Date { get; set; }
7477
public string? Name { get; set; }
7578
public string? User { get; set; }
76-
}
79+
}

BFF/v2/Angular/Angular.Bff/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
14
using Angular.Bff;
25
using Duende.Bff.Yarp;
36

BFF/v2/Angular/Angular.Bff/ToDoEndpointGroup.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
using Microsoft.AspNetCore.Http.Extensions;
2-
using Microsoft.AspNetCore.Mvc;
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
34
using System.Security.Claims;
5+
using Microsoft.AspNetCore.Http.Extensions;
46

57
namespace Angular.Bff;
68

@@ -28,11 +30,11 @@ public static RouteGroupBuilder ToDoGroup(this RouteGroupBuilder group)
2830
{
2931
model.Id = ToDo.NewId();
3032
model.User = $"{user.FindFirst("sub")?.Value} ({user.FindFirst("name")?.Value})";
31-
33+
3234
data.Add(model);
33-
35+
3436
var url = new Uri($"{context.Request.GetEncodedUrl()}/{model.Id}");
35-
37+
3638
return Results.Created(url, model);
3739
});
3840

@@ -75,4 +77,4 @@ public static int NewId()
7577
public DateTimeOffset Date { get; set; }
7678
public string? Name { get; set; }
7779
public string? User { get; set; }
78-
}
80+
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
14
public class AntiforgeryHandler : DelegatingHandler
25
{
36
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
47
{
58
request.Headers.Add("X-CSRF", "1");
69
return base.SendAsync(request, cancellationToken);
710
}
8-
}
11+
}

BFF/v2/BlazorWasm/Client/BFF/BffAuthenticationStateProvider.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
14
using System.Net;
25
using System.Net.Http.Json;
36
using System.Security.Claims;
@@ -35,7 +38,7 @@ public override async Task<AuthenticationState> GetAuthenticationStateAsync()
3538
{
3639
_logger.LogInformation("starting background check..");
3740
Timer? timer = null;
38-
41+
3942
timer = new Timer(async _ =>
4043
{
4144
var currentUser = await GetUser(false);
@@ -100,4 +103,4 @@ private async Task<ClaimsPrincipal> FetchUser()
100103

101104
return new ClaimsPrincipal(new ClaimsIdentity());
102105
}
103-
}
106+
}

BFF/v2/BlazorWasm/Client/Program.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
using Microsoft.AspNetCore.Components.Web;
2-
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
34
using BlazorWasm.Client;
45
using BlazorWasm.Client.BFF;
56
using Microsoft.AspNetCore.Components.Authorization;
7+
using Microsoft.AspNetCore.Components.Web;
8+
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
69

710
var builder = WebAssemblyHostBuilder.CreateDefault(args);
811
builder.RootComponents.Add<App>("#app");

BFF/v2/BlazorWasm/Server/Controllers/WeatherForecastController.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
using Microsoft.AspNetCore.Mvc;
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
24
using BlazorWasm.Shared;
5+
using Microsoft.AspNetCore.Mvc;
36

47
namespace BlazorWasm.Server.Controllers;
58

BFF/v2/BlazorWasm/Server/Pages/Error.cshtml.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System.Diagnostics;
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+
using System.Diagnostics;
25
using Microsoft.AspNetCore.Mvc;
36
using Microsoft.AspNetCore.Mvc.RazorPages;
47

BFF/v2/BlazorWasm/Server/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Duende Software. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
14
var builder = WebApplication.CreateBuilder(args);
25

36
// Add services to the container.

0 commit comments

Comments
 (0)