C# Class WebStreams.Server.ControllerBuilder

Methods for constructing controllers
显示文件 Open project: WebStreams/WebStreams.Server Class Usage Examples

Public Methods

Method Description
GetRoutes ( Type controller, WebStreamsSettings settings ) : ControllerRoute>.IDictionary

Returns the steam controller routes for the provided controller.

Private Methods

Method Description
GetControllerMethod ( MethodInfo method, WebStreamsSettings settings, string methodRoutePrefix ) : ControllerRoute

Returns the ControllerRoute.Invoker for the provided method.

GetRoutePrefix ( Type type ) : string

Returns the RoutePrefixAttribute value for the provided type.

GetRouteSuffixTemplate ( MethodInfo method ) : string

Returns the RouteAttribute.Route value for the provided method.

GetStreamMethods ( Type type ) : IEnumerable

Returns the steam controller methods for the provided type.

IsStreamMethod ( MethodInfo method ) : bool

Returns if the provided method is a stream controller method, otherwise.

JoinRouteParts ( ) : string

Returns the joined route for the provided values.

Method Details

GetRoutes() public static method

Returns the steam controller routes for the provided controller.
public static GetRoutes ( Type controller, WebStreamsSettings settings ) : ControllerRoute>.IDictionary
controller System.Type /// The controller type. ///
settings WebStreamsSettings /// The settings. ///
return ControllerRoute>.IDictionary