DeclareRoute() public method

Declare a new subordinated route.
public DeclareRoute ( SubRouteConfiguration route ) : RouteConfiguration
route SubRouteConfiguration The subordinated route configuration.
return RouteConfiguration
 RouteConfiguration FillRoute( IActivityMonitor monitor, XElement xml, RouteConfiguration route )
 {
     route.ConfigData = new GrandOutputChannelConfigData( xml );
     foreach( var e in xml.Elements() )
     {
         switch( e.Name.LocalName )
         {
             case "Channel":
                 route.DeclareRoute( FillSubRoute( monitor, e, new SubRouteConfiguration( e.AttributeRequired( "Name" ).Value, null ) ) );
                 break;
             case "Parallel": 
             case "Sequence":
             case "Add": DoSequenceOrParallelOrAdd( monitor, a => route.AddAction( a ), e );
                 break;
             default: throw new XmlException( "Element name must be <Add>, <Parallel>, <Sequence> or <Channel>." + e.GetLineColumnString() );
         }
     }
     return route;
 }