예제 #1
0
 /// <summary>
 /// Constructs new instance of EnpointInfo
 /// </summary>
 /// <param name="type">Type of IEndpoint</param>
 /// <param name="handlerDeclaration">Information about the endpoint handler</param>
 /// <param name="pattern">Route pattern of endpoint</param>
 /// <param name="name">Route Name</param>
 /// <param name="order">Route order.</param>
 public EndpointDeclaration(Type type, EndpointRequestHandlerDeclaration handlerDeclaration, RoutePattern pattern, string name, int order)
 {
     Type = type;
     HandlerDeclaration = handlerDeclaration;
     Pattern            = pattern;
     Order = order;
     Name  = name;
     Meta  = new List <object>();
 }
 public static IEnumerable <EndpointParameterDescriptor> GetDetails(this EndpointRequestHandlerDeclaration declaration)
 {
     return(declaration.ParameterInfos.SelectMany(s => s.GetParameterDescriptors()));
 }