Пример #1
0
 public Route GetRoute(IApiRouteHandler routeHandler, IApiMethodCall method, string extension)
 {
     var dataTokens = new RouteValueDictionary
                          {
                              {DataTokenConstants.RequiresAuthorization,method.RequiresAuthorization}
                          };
     return new Route(method.FullPath + extension, null, method.Constraints, dataTokens, routeHandler);
 }
Пример #2
0
        public Route GetRoute(IApiRouteHandler routeHandler, IApiMethodCall method, string extension)
        {
            var dataTokens = new RouteValueDictionary
            {
                { DataTokenConstants.RequiresAuthorization, method.RequiresAuthorization }
            };

            return(new Route(method.FullPath + extension, null, method.Constraints, dataTokens, routeHandler));
        }
 public Route GetPollRoute(IApiRouteHandler routeHandler, IApiMethodCall method, string extension)
 {
     Log.Debug("Long poll route:" + method.RoutingPollUrl + extension + " authorization:" + method.RequiresAuthorization);
     var dataTokens = new RouteValueDictionary
                          {
                              {DataTokenConstants.RequiresAuthorization,method.RequiresAuthorization},
                          };
     return new Route(method.RoutingPollUrl + extension, null, method.Constraints, dataTokens, routeHandler);
 }
        public Route GetPollRoute(IApiRouteHandler routeHandler, IApiMethodCall method, string extension)
        {
            Log.Debug("Long poll route:" + method.RoutingPollUrl + extension + " authorization:" + method.RequiresAuthorization);
            var dataTokens = new RouteValueDictionary
            {
                { DataTokenConstants.RequiresAuthorization, method.RequiresAuthorization },
            };

            return(new Route(method.RoutingPollUrl + extension, null, method.Constraints, dataTokens, routeHandler));
        }
 public Route GetPollRoute(IApiRouteHandler routeHandler, IApiMethodCall method)
 {
     return(GetPollRoute(routeHandler, method, string.Empty));
 }
 public Route GetPollRoute(IApiRouteHandler routeHandler, IApiMethodCall method)
 {
     return GetPollRoute(routeHandler, method, string.Empty);
 }