コード例 #1
0
 /// <summary>
 /// Registers the specified route.
 /// </summary>
 /// <param name="route">The route.</param>
 public virtual void Add(IRoute route)
 {
     Guard.ArgumentNotNull(route, "route");
     route.Validate();
     routes.Add(route);
 }
コード例 #2
0
 /// <summary>
 /// Registers the specified route.
 /// </summary>
 /// <param name="route">The route.</param>
 public virtual void Add(IRoute route)
 {
     Guard.ArgumentNotNull(route, "route");
     route.Validate();
     routes.Add(route);
 }