Fix code formatting

This commit is contained in:
Damian Hickey 2026-02-16 23:14:24 +01:00
parent 62bf8b682e
commit 91f3e9f1b8
8 changed files with 28 additions and 28 deletions

View file

@ -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<TBuilder>(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;

View file

@ -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 =>

View file

@ -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();
}

View file

@ -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<DefaultTokenServiceTest>();
}

View file

@ -44,9 +44,9 @@ public static class ClientExtensions
return Task.FromResult(keys);
}
private static List<X509Certificate2> GetCertificates(IEnumerable<Secret> secrets) =>
private static List<X509Certificate2> GetCertificates(IEnumerable<Secret> 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 =>

View file

@ -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
};

View file

@ -112,8 +112,8 @@ public class AuthorizationRequest
/// <summary>
/// Initializes a new instance of the <see cref="AuthorizationRequest"/> class.
/// </summary>
public AuthorizationRequest() =>
// public for testing
public AuthorizationRequest() =>
// public for testing
Parameters = new NameValueCollection();
/// <summary>

View file

@ -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());