Junior.Route.AspNetIntegration.ResponseGenerators.ResponseResult.ResponseGenerated C# (CSharp) Method

ResponseGenerated() public static method

public static ResponseGenerated ( IResponse response, string cacheKey = null ) : ResponseResult
response IResponse
cacheKey string
return ResponseResult
        public static ResponseResult ResponseGenerated(IResponse response, string cacheKey = null)
        {
            return ResponseGenerated(response.AsCompletedTask(), cacheKey);
        }

Same methods

ResponseResult::ResponseGenerated ( Task response, string cacheKey = null ) : ResponseResult

Usage Example

Ejemplo n.º 1
0
        public Task <ResponseResult> GetResponseAsync(HttpContextBase context, IEnumerable <RouteMatchResult> routeMatchResults)
        {
            context.ThrowIfNull("context");
            routeMatchResults.ThrowIfNull("routeMatchResults");

            return(ResponseResult.ResponseGenerated(new Response().NotFound()).AsCompletedTask());
        }
All Usage Examples Of Junior.Route.AspNetIntegration.ResponseGenerators.ResponseResult::ResponseGenerated