Beispiel #1
0
        ///<summary>
        ///Add and configure a new AnarchyRoute
        ///</summary>
        public void Route(Action <AnarchyRoute> configure)
        {
            var route = new AnarchyRoute();

            configure(route);
            Routes.Add(route);
        }
Beispiel #2
0
        ///<summary>
        ///Add and configure a new AnarchyRoute
        ///</summary>
        public void Route(string route, string response, int statusCode)
        {
            var anarchyRoute = new AnarchyRoute {
                Route      = route,
                Response   = response,
                StatusCode = statusCode
            };

            Routes.Add(anarchyRoute);
        }