diff --git a/aspnetcore/signalr/configuration.md b/aspnetcore/signalr/configuration.md index 4fc29bececb2..90d1698cf755 100644 --- a/aspnetcore/signalr/configuration.md +++ b/aspnetcore/signalr/configuration.md @@ -68,7 +68,7 @@ The following table describes options for configuring SignalR hubs: | ------ | ------------- | ----------- | | `ClientTimeoutInterval` | 30 seconds | The server considers the client disconnected if it hasn't received a message (including keep-alive) in this interval. It could take longer than this timeout interval for the client to be marked disconnected due to how this is implemented. The recommended value is double the `KeepAliveInterval` value.| | `HandshakeTimeout` | 15 seconds | If the client doesn't send an initial handshake message within this time interval, the connection is closed. This is an advanced setting that should only be modified if handshake timeout errors are occurring due to severe network latency. For more detail on the handshake process, see the [SignalR Hub Protocol Specification](https://github.com/aspnet/SignalR/blob/master/specs/HubProtocol.md). | -| `KeepAliveInterval` | 15 seconds | If the server hasn't sent a message within this interval, a ping message is sent automatically to keep the connection open. When changing `KeepAliveInterval`, change the `ServerTimeout` or `serverTimeoutInMilliseconds` setting on the client. The recommended `ServerTimeout` or `serverTimeoutInMilliseconds` value is double the `KeepAliveInterval` value. | +| `KeepAliveInterval` | 15 seconds | The interval at which a ping message is sent automatically to keep the connection open. When changing `KeepAliveInterval`, change the `ServerTimeout` or `serverTimeoutInMilliseconds` setting on the client. The recommended `ServerTimeout` or `serverTimeoutInMilliseconds` value is double the `KeepAliveInterval` value. | | `SupportedProtocols` | All installed protocols | Protocols supported by this hub. By default, all protocols registered on the server are allowed. Protocols can be removed from this list to disable specific protocols for individual hubs. | | `EnableDetailedErrors` | `false` | If `true`, detailed exception messages are returned to clients when an exception is thrown in a Hub method. The default is `false` because these exception messages can contain sensitive information. | | `StreamBufferCapacity` | `10` | The maximum number of items that can be buffered for client upload streams. If this limit is reached, the processing of invocations is blocked until the server processes stream items.| @@ -494,4 +494,4 @@ HubConnection hubConnection = HubConnectionBuilder.create("https://example.com/c [!INCLUDE[](~/signalr/configuration/includes/configuration6.md)] -[!INCLUDE[](~/signalr/configuration/includes/configuration7.md)] \ No newline at end of file +[!INCLUDE[](~/signalr/configuration/includes/configuration7.md)] diff --git a/aspnetcore/test/integration-tests.md b/aspnetcore/test/integration-tests.md index c1d570ebe34a..797bc9a8c099 100644 --- a/aspnetcore/test/integration-tests.md +++ b/aspnetcore/test/integration-tests.md @@ -5,7 +5,7 @@ description: Learn how integration tests ensure that an app's components functio monikerRange: '>= aspnetcore-3.1' ms.author: tdykstra ms.custom: mvc -ms.date: 3/24/2025 +ms.date: 03/10/2026 uid: test/integration-tests zone_pivot_groups: unit-testing-framework --- diff --git a/aspnetcore/test/integration-tests/includes/integration-tests9.md b/aspnetcore/test/integration-tests/includes/integration-tests9.md index c009fa0b2494..7a75aaccca40 100644 --- a/aspnetcore/test/integration-tests/includes/integration-tests9.md +++ b/aspnetcore/test/integration-tests/includes/integration-tests9.md @@ -369,21 +369,21 @@ The test app can mock an { - services.AddAuthentication(defaultScheme: "TestScheme") + services.AddAuthentication(options => + { + options.DefaultAuthenticateScheme = "TestScheme"; + options.DefaultChallengeScheme = "TestScheme"; + }) .AddScheme( "TestScheme", options => { }); }); diff --git a/aspnetcore/test/integration-tests/snippets/nunit/IntegrationTests/AuthTests.cs b/aspnetcore/test/integration-tests/snippets/nunit/IntegrationTests/AuthTests.cs index 6e374e63af14..7ad70a8ea1d3 100644 --- a/aspnetcore/test/integration-tests/snippets/nunit/IntegrationTests/AuthTests.cs +++ b/aspnetcore/test/integration-tests/snippets/nunit/IntegrationTests/AuthTests.cs @@ -110,7 +110,11 @@ public async Task Get_SecurePageIsReturnedForAnAuthenticatedUser() { builder.ConfigureTestServices(services => { - services.AddAuthentication(defaultScheme: "TestScheme") + services.AddAuthentication(options => + { + options.DefaultAuthenticateScheme = "TestScheme"; + options.DefaultChallengeScheme = "TestScheme"; + }) .AddScheme( "TestScheme", options => { }); }); diff --git a/aspnetcore/test/integration-tests/snippets/xunit/IntegrationTests/AuthTests.cs b/aspnetcore/test/integration-tests/snippets/xunit/IntegrationTests/AuthTests.cs index 0c3ae7d3fa4d..f65aa83246fa 100644 --- a/aspnetcore/test/integration-tests/snippets/xunit/IntegrationTests/AuthTests.cs +++ b/aspnetcore/test/integration-tests/snippets/xunit/IntegrationTests/AuthTests.cs @@ -106,7 +106,11 @@ public async Task Get_SecurePageIsReturnedForAnAuthenticatedUser() { builder.ConfigureTestServices(services => { - services.AddAuthentication(defaultScheme: "TestScheme") + services.AddAuthentication(options => + { + options.DefaultAuthenticateScheme = "TestScheme"; + options.DefaultChallengeScheme = "TestScheme"; + }) .AddScheme( "TestScheme", options => { }); });