Ejemplo n.º 1
0
 public void Add(FluentActionCollection fluentActions)
 {
     foreach (var fluentAction in fluentActions)
     {
         PreConfigureAction(fluentAction);
         FluentActions.Add(fluentAction);
     }
 }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
 public void Add(FluentActionBase fluentAction)
 {
     PreConfigureAction(fluentAction);
     FluentActions.Add(fluentAction);
 }