private static string ExtractMethodName(RouteRule routeRule, object routedObject) { var methodName = routeRule.Options.RouteTemplate; methodName = methodName.Replace("{typeName}", routedObject.GetType().Name); return(methodName); }
public void RegisterRoute(RouteRule routeRule) { if (routeRule.RouteProcessor == null) { throw new ArgumentNullException(nameof(routeRule.RouteProcessor)); } if (routeRule.Options.UseInterfaceMessageRouting) { HasMessageHandlerRouting = true; } routes.Add(routeRule); }