示例#1
0
 public WebJobsRouteBuilder CreateBuilder(IWebJobsRouteHandler routeHandler, string routePrefix)
 {
     return(new WebJobsRouteBuilder(_constraintResolver, routeHandler, routePrefix));
 }
 public WebJobsRouteBuilder(IInlineConstraintResolver constraintResolver, IWebJobsRouteHandler handler, string routePrefix)
 {
     _handler            = handler ?? throw new ArgumentNullException(nameof(handler));
     _constraintResolver = constraintResolver;
     _routePrefix        = routePrefix;
 }
 public WebJobsRouteBuilder(IApplicationBuilder applicationBuilder, IWebJobsRouteHandler handler)
     : this(applicationBuilder, handler, null)
 {
 }
 public WebJobsRouteBuilder(IApplicationBuilder applicationBuilder, IWebJobsRouteHandler handler, string routePrefix)
     : this(applicationBuilder.ApplicationServices.GetRequiredService <IInlineConstraintResolver>(), handler, routePrefix)
 {
 }
示例#5
0
 internal ProxyFunctionExecutor(WebScriptHostManager scriptHostManager, IWebJobsRouteHandler routeHandler)
 {
     _scriptHostManager = scriptHostManager;
     _routeHandler      = routeHandler;
 }