private static ExecutionTargetInfo ResolveExecutionTarget(string path, Incubator serviceProvider, ProxyAlias[] proxyAliases) { if (path.ToLowerInvariant().StartsWith("/get")) { path = path.TruncateFront(4); } else if (path.ToLowerInvariant().StartsWith("/post")) { path = path.TruncateFront(5); } return(ExecutionTargetInfo.ResolveExecutionTarget(path, serviceProvider, proxyAliases)); }
public virtual ExecutionTargetInfo ResolveExecutionTarget(IHttpContext context) { return(ExecutionTargetInfo.ResolveExecutionTarget(context.Request.Url.AbsolutePath, ServiceProvider, ProxyAliases)); }