// <summary> /// Uses XmlRpc services within ASP.NET Core pipeline. /// </summary> /// <param name="builder"> The builder where to register the usage. </param> /// <param name="configure"> Configuration for registering one or more XmlRpc services. </param> /// <returns> This builder for fluent usage. </returns> public static IApplicationBuilder UseXmlRpc(this IApplicationBuilder builder, Action <IServiceRouteBuilder> configure) { var routes = new RouteBuilder(builder); var rpcRoutes = new ServiceRouteBuilder( routes, builder.ApplicationServices.GetService <IXmlRpcServiceFactory>()); configure(rpcRoutes); builder.UseRouter(routes.Build()); return(builder); }
public static void MapHelpers(this ServiceRouteBuilder builder) => builder.MapHub <DataUpdatesHub>("/dataUpdates");