private IList <RouteBase> buildRoutes(IBehaviorFactory factory, BehaviorGraph graph) { var routes = new List <RouteBase>(); // Build route objects from route definitions on graph + add packaging routes _facility.Value.Get <IRoutePolicy>().BuildRoutes(graph, factory).Each(routes.Add); _fubuFacility.AddPackagingContentRoutes(routes); return(routes); }
private IList <RouteBase> buildRoutes() { var routes = new List <RouteBase>(); // Build route objects from route definitions on graph + add packaging routes var factory = facility.BuildFactory(); facility.Get <IRoutePolicy>().BuildRoutes(_graph, factory).Each(routes.Add); _fubuFacility.AddPackagingContentRoutes(routes); return(routes); }