C# Class NSemble.Web.Core.NSembleRouteResolver

The default implementation for deciding if any of the available routes is a match for the incoming HTTP request.
Inheritance: IRouteResolver, IDiagnosticsProvider
Exibir arquivo Open project: synhershko/NSemble Class Usage Examples

Public Methods

Method Description
NSembleRouteResolver ( INancyModuleCatalog catalog, INancyModuleBuilder moduleBuilder, IRouteCache routeCache, IRouteResolverTrie trie ) : System
Resolve ( Nancy.NancyContext context ) : Nancy.Routing.ResolveResult

Private Methods

Method Description
BuildOptionsResult ( Nancy.NancyContext context ) : Nancy.Routing.ResolveResult
BuildResult ( Nancy.NancyContext context, MatchResult result ) : Nancy.Routing.ResolveResult
BuildTrie ( ) : void
GetMethod ( Nancy.NancyContext context ) : string
GetModuleFromMatchResult ( Nancy.NancyContext context, MatchResult result ) : INancyModule
GetNotFoundResult ( Nancy.NancyContext context ) : Nancy.Routing.ResolveResult
IsOptionsRequest ( Nancy.NancyContext context ) : bool
Resolve ( Nancy.NancyContext context, string pathDecoded ) : Nancy.Routing.ResolveResult

Method Details

NSembleRouteResolver() public method

public NSembleRouteResolver ( INancyModuleCatalog catalog, INancyModuleBuilder moduleBuilder, IRouteCache routeCache, IRouteResolverTrie trie ) : System
catalog INancyModuleCatalog
moduleBuilder INancyModuleBuilder
routeCache IRouteCache
trie IRouteResolverTrie
return System

Resolve() public method

public Resolve ( Nancy.NancyContext context ) : Nancy.Routing.ResolveResult
context Nancy.NancyContext
return Nancy.Routing.ResolveResult