예제 #1
0
        public static async Task <T> IndexAsync <T>()
        {
            var routeInfo = new RouteInfo
            {
                HttpMethods = "GET",
                Path        = Index,
            };

            return(await HttpClientAsync.Async <T>(routeInfo));
        }
예제 #2
0
        public static async Task <T> ShowAllRoutesAsync <T>()
        {
            var routeInfo = new RouteInfo
            {
                HttpMethods = "GET",
                Path        = ShowAllRoutes,
            };

            return(await HttpClientAsync.Async <T>(routeInfo));
        }