Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Microsoft.Azure.SignalR/ApplicationBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ public static class AzureSignalRApplicationBuilderExtensions
/// <param name="app">The <see cref="IApplicationBuilder"/>.</param>
/// <param name="configure">A callback to configure the <see cref="ServiceRouteBuilder"/>.</param>
/// <returns>The same instance of the <see cref="IApplicationBuilder"/> for chaining.</returns>
#if !NETSTANDARD2_0
[Obsolete("IApplicationBuilder.UseAzureSignalR is obsoleted. Use IApplicationBuilder.UseEndpoints() to replace")]
#endif
public static IApplicationBuilder UseAzureSignalR(this IApplicationBuilder app, Action<ServiceRouteBuilder> configure)
{
var marker = app.ApplicationServices.GetService<AzureSignalRMarkerService>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public TestStartup(IConfiguration configuration)

public void Configure(IApplicationBuilder app)
{
app.UseAzureSignalR(configure =>
app.UseEndpoints(configure =>
{
configure.MapHub<TestHub>($"/{nameof(TestHub)}");
});
Expand Down