public void Add(FluentActionCollection fluentActions) { foreach (var fluentAction in fluentActions) { PreConfigureAction(fluentAction); FluentActions.Add(fluentAction); } }
/// <summary> /// Creates and adds a fluent action to this collection. /// </summary> /// <param name="id">Optional unique Id (between all fluent actions) for better debuggability and/or meta /// programming (such as generating docs or APIs).</param> public FluentAction Route(string routeTemplate, HttpMethod httpMethod, string id = null) { var fluentAction = new FluentAction(routeTemplate, httpMethod, id); PreConfigureAction(fluentAction); FluentActions.Add(fluentAction); return(fluentAction); }
public void Add(FluentActionBase fluentAction) { PreConfigureAction(fluentAction); FluentActions.Add(fluentAction); }