/// <summary> /// Initializes the hub route using specified configuration. /// </summary> /// <param name="routes">The route table.</param> /// <param name="path">The path of the hubs route.</param> /// <param name="configuration">Configuration options.</param> /// <param name="build">An action to further configure the OWIN pipeline.</param> /// <returns>The registered route.</returns> public static RouteBase MapHubs(this RouteCollection routes, string path, HubConfiguration configuration, Action <IAppBuilder> build) { if (routes == null) { throw new ArgumentNullException("routes"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } return(routes.MapHubs("signalr.hubs", path, configuration, build)); }
/// <summary> /// Initializes the default hub route (/signalr). /// </summary> /// <param name="routes">The route table.</param> /// <param name="configuration">Configuration options.</param> /// <returns>The registered route.</returns> public static RouteBase MapHubs(this RouteCollection routes, HubConfiguration configuration) { return(routes.MapHubs("/signalr", configuration)); }
/// <summary> /// Initializes the default hub route (/signalr). /// </summary> /// <param name="routes">The route table.</param> /// <returns>The registered route.</returns> public static RouteBase MapHubs(this RouteCollection routes) { return(routes.MapHubs(new HubConfiguration())); }