mirror of
https://github.com/DuendeSoftware/products
synced 2026-05-24 09:28:24 +00:00
Fix code formatting
This commit is contained in:
parent
62bf8b682e
commit
91f3e9f1b8
8 changed files with 28 additions and 28 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 =>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 =>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in a new issue