@@ -32,6 +32,18 @@ public static IAppBuilder MapAzureSignalR(this IAppBuilder builder, string appli
3232 return builder . MapAzureSignalR ( applicationName , new HubConfiguration ( ) ) ;
3333 }
3434
35+ /// <summary>
36+ /// Maps Azure SignalR hubs to the app builder pipeline at "/signalr".
37+ /// </summary>
38+ /// <param name="builder">The app builder <see cref="IAppBuilder"/>.</param>
39+ /// <param name="applicationName">The name of your app, it is case-incensitive.</param>
40+ /// <param name="optionsConfigure">A callback to configure the <see cref="ServiceOptions"/>.</param>
41+ /// <returns>The app builder</returns>
42+ public static IAppBuilder MapAzureSignalR ( this IAppBuilder builder , string applicationName , Action < ServiceOptions > optionsConfigure )
43+ {
44+ return builder . MapAzureSignalR ( applicationName , new HubConfiguration ( ) , optionsConfigure ) ;
45+ }
46+
3547 /// <summary>
3648 /// Maps Azure SignalR hubs to the app builder pipeline at "/signalr".
3749 /// </summary>
@@ -44,6 +56,19 @@ public static IAppBuilder MapAzureSignalR(this IAppBuilder builder, string appli
4456 return builder . MapAzureSignalR ( "/signalr" , applicationName , configuration ) ;
4557 }
4658
59+ /// <summary>
60+ /// Maps Azure SignalR hubs to the app builder pipeline at "/signalr".
61+ /// </summary>
62+ /// <param name="builder">The app builder <see cref="IAppBuilder"/>.</param>
63+ /// <param name="applicationName">The name of your app, it is case-incensitive.</param>
64+ /// <param name="configuration">The hub configuration <see cref="HubConfiguration"/>.</param>
65+ /// <param name="optionsConfigure">A callback to configure the <see cref="ServiceOptions"/>.</param>
66+ /// <returns>The app builder</returns>
67+ public static IAppBuilder MapAzureSignalR ( this IAppBuilder builder , string applicationName , HubConfiguration configuration , Action < ServiceOptions > optionsConfigure )
68+ {
69+ return builder . MapAzureSignalR ( "/signalr" , applicationName , configuration , optionsConfigure ) ;
70+ }
71+
4772 /// <summary>
4873 /// Maps Azure SignalR hubs to the app builder pipeline at the specified path.
4974 /// </summary>
@@ -57,6 +82,20 @@ public static IAppBuilder MapAzureSignalR(this IAppBuilder builder, string path,
5782 return builder . Map ( path , subApp => subApp . RunAzureSignalR ( applicationName , configuration ) ) ;
5883 }
5984
85+ /// <summary>
86+ /// Maps Azure SignalR hubs to the app builder pipeline at the specified path.
87+ /// </summary>
88+ /// <param name="builder">The app builder <see cref="IAppBuilder"/>.</param>
89+ /// <param name="path">The path to map signalr hubs.</param>
90+ /// <param name="applicationName">The name of your app, it is case-incensitive.</param>
91+ /// <param name="configuration">The hub configuration <see cref="HubConfiguration"/>.</param>
92+ /// <param name="optionsConfigure">A callback to configure the <see cref="ServiceOptions"/>.</param>
93+ /// <returns>The app builder</returns>
94+ public static IAppBuilder MapAzureSignalR ( this IAppBuilder builder , string path , string applicationName , HubConfiguration configuration , Action < ServiceOptions > optionsConfigure )
95+ {
96+ return builder . Map ( path , subApp => subApp . RunAzureSignalR ( applicationName , configuration , optionsConfigure ) ) ;
97+ }
98+
6099 /// <summary>
61100 /// Adds Azure SignalR hubs to the app builder pipeline at "/signalr".
62101 /// </summary>
0 commit comments