From 91f3e9f1b84d1e6ab986100bbe3c6f6c87945144 Mon Sep 17 00:00:00 2001 From: Damian Hickey <57436+damianh@users.noreply.github.com> Date: Mon, 16 Feb 2026 23:14:24 +0100 Subject: [PATCH] Fix code formatting --- bff/hosts/Hosts.ServiceDefaults/Extensions.cs | 10 +++++----- bff/templates/src/BffLocalApi/HostingExtensions.cs | 6 +++--- .../Hosts.Tests/PageModels/WeatherPageModel.cs | 4 ++-- .../perf/IdentityServer.PerfTests/Program.cs | 14 +++++++------- .../IdentityServer/Extensions/ClientExtensions.cs | 4 ++-- .../Licensing/IdentityServerLicense.cs | 8 ++++---- .../Models/Messages/AuthorizationRequest.cs | 4 ++-- .../Services/Default/DefaultEventServiceTests.cs | 6 +++--- 8 files changed, 28 insertions(+), 28 deletions(-) diff --git a/bff/hosts/Hosts.ServiceDefaults/Extensions.cs b/bff/hosts/Hosts.ServiceDefaults/Extensions.cs index afbaeb37d..97eedf0b2 100644 --- a/bff/hosts/Hosts.ServiceDefaults/Extensions.cs +++ b/bff/hosts/Hosts.ServiceDefaults/Extensions.cs @@ -68,9 +68,9 @@ public static class Extensions .WithTracing(tracing => { tracing.AddSource(builder.Environment.ApplicationName) - .AddAspNetCoreInstrumentation() - // Uncomment the following line to enable gRPC instrumentation (requires the OpenTelemetry.Instrumentation.GrpcNetClient package) - //.AddGrpcClientInstrumentation() + .AddAspNetCoreInstrumentation() + // Uncomment the following line to enable gRPC instrumentation (requires the OpenTelemetry.Instrumentation.GrpcNetClient package) + //.AddGrpcClientInstrumentation() .AddHttpClientInstrumentation(); }); @@ -98,8 +98,8 @@ public static class Extensions public static TBuilder AddDefaultHealthChecks(this TBuilder builder) where TBuilder : IHostApplicationBuilder { - builder.Services.AddHealthChecks() - // Add a default liveness check to ensure app is responsive + builder.Services.AddHealthChecks() + // Add a default liveness check to ensure app is responsive .AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]); return builder; diff --git a/bff/templates/src/BffLocalApi/HostingExtensions.cs b/bff/templates/src/BffLocalApi/HostingExtensions.cs index d986d952e..4081a3380 100644 --- a/bff/templates/src/BffLocalApi/HostingExtensions.cs +++ b/bff/templates/src/BffLocalApi/HostingExtensions.cs @@ -11,9 +11,9 @@ internal static class HostingExtensions builder.Services.AddControllers(); // add BFF services and server-side session management - builder.Services.AddBff() - // if you wanted to enable a remote API (in addition or instead of the local API), then you could uncomment this line - //.AddRemoteApis() + builder.Services.AddBff() + // if you wanted to enable a remote API (in addition or instead of the local API), then you could uncomment this line + //.AddRemoteApis() .AddServerSideSessions(); builder.Services.AddAuthentication(options => diff --git a/bff/test/Hosts.Tests/PageModels/WeatherPageModel.cs b/bff/test/Hosts.Tests/PageModels/WeatherPageModel.cs index 0e6a44d40..669d212ca 100644 --- a/bff/test/Hosts.Tests/PageModels/WeatherPageModel.cs +++ b/bff/test/Hosts.Tests/PageModels/WeatherPageModel.cs @@ -7,7 +7,7 @@ namespace Hosts.Tests.PageModels; public class WeatherPageModel : WebAssemblyPageModel { - public async Task VerifyWeatherListIsShown() => - // Verify that the list is actually loading + public async Task VerifyWeatherListIsShown() => + // Verify that the list is actually loading await Expect(Page.GetByRole(AriaRole.Cell, new() { Name = "Summary" })).ToBeVisibleAsync(); } diff --git a/identity-server/perf/IdentityServer.PerfTests/Program.cs b/identity-server/perf/IdentityServer.PerfTests/Program.cs index 36b54c289..df1e8474e 100644 --- a/identity-server/perf/IdentityServer.PerfTests/Program.cs +++ b/identity-server/perf/IdentityServer.PerfTests/Program.cs @@ -9,12 +9,12 @@ namespace IdentityServer.PerfTests; internal class Program { - private static void Main(string[] args) => - //var sub = new DefaultTokenServiceTest(); - //while (true) - //{ - // sub.TestTokenCreation().GetAwaiter().GetResult(); - //} - + private static void Main(string[] args) => + //var sub = new DefaultTokenServiceTest(); + //while (true) + //{ + // sub.TestTokenCreation().GetAwaiter().GetResult(); + //} + BenchmarkRunner.Run(); } diff --git a/identity-server/src/IdentityServer/Extensions/ClientExtensions.cs b/identity-server/src/IdentityServer/Extensions/ClientExtensions.cs index 1331f3e8e..6761c596a 100644 --- a/identity-server/src/IdentityServer/Extensions/ClientExtensions.cs +++ b/identity-server/src/IdentityServer/Extensions/ClientExtensions.cs @@ -44,9 +44,9 @@ public static class ClientExtensions return Task.FromResult(keys); } - private static List GetCertificates(IEnumerable secrets) => + private static List GetCertificates(IEnumerable secrets) => #pragma warning disable SYSLIB0057 // Type or member is obsolete - // TODO - Use X509CertificateLoader in a future release (when we drop NET8 support) + // TODO - Use X509CertificateLoader in a future release (when we drop NET8 support) secrets .Where(s => s.Type == IdentityServerConstants.SecretTypes.X509CertificateBase64) .Select(s => diff --git a/identity-server/src/IdentityServer/Licensing/IdentityServerLicense.cs b/identity-server/src/IdentityServer/Licensing/IdentityServerLicense.cs index 8340f9f75..d39a5f1ee 100644 --- a/identity-server/src/IdentityServer/Licensing/IdentityServerLicense.cs +++ b/identity-server/src/IdentityServer/Licensing/IdentityServerLicense.cs @@ -125,8 +125,8 @@ public class IdentityServerLicense : License // these for the non-ISV editions that always have unlimited, regardless of explicit value ClientLimit = Edition switch { - LicenseEdition.Enterprise or LicenseEdition.Community => - // unlimited + LicenseEdition.Enterprise or LicenseEdition.Community => + // unlimited null, _ => ClientLimit }; @@ -146,8 +146,8 @@ public class IdentityServerLicense : License // these for the editions that always have unlimited, regardless of explicit value IssuerLimit = Edition switch { - LicenseEdition.Enterprise or LicenseEdition.Community => - // unlimited + LicenseEdition.Enterprise or LicenseEdition.Community => + // unlimited null, _ => IssuerLimit }; diff --git a/identity-server/src/IdentityServer/Models/Messages/AuthorizationRequest.cs b/identity-server/src/IdentityServer/Models/Messages/AuthorizationRequest.cs index cd4f7046e..b54996581 100644 --- a/identity-server/src/IdentityServer/Models/Messages/AuthorizationRequest.cs +++ b/identity-server/src/IdentityServer/Models/Messages/AuthorizationRequest.cs @@ -112,8 +112,8 @@ public class AuthorizationRequest /// /// Initializes a new instance of the class. /// - public AuthorizationRequest() => - // public for testing + public AuthorizationRequest() => + // public for testing Parameters = new NameValueCollection(); /// diff --git a/identity-server/test/IdentityServer.UnitTests/Services/Default/DefaultEventServiceTests.cs b/identity-server/test/IdentityServer.UnitTests/Services/Default/DefaultEventServiceTests.cs index 68bae1e2b..f80a99ac9 100644 --- a/identity-server/test/IdentityServer.UnitTests/Services/Default/DefaultEventServiceTests.cs +++ b/identity-server/test/IdentityServer.UnitTests/Services/Default/DefaultEventServiceTests.cs @@ -19,9 +19,9 @@ public class DefaultEventServiceTests var sink = new MockEventSink(); var sut = new DefaultEventService( - options, - // This is the most important part of this test. We want to ensure - // that we don't throw exceptions when there is no http context available. + options, + // This is the most important part of this test. We want to ensure + // that we don't throw exceptions when there is no http context available. new NullHttpContextAccessor(), sink, new MockClock());