C# Class TeeSquare.WebApi.Reflection.RouteReflector

Mostra file Open project: tristanmenzel/TeeSquare Class Usage Examples

Public Methods

Method Description
AddAdditionalTypes ( Array types ) : void
AddAssembly ( Assembly assembly, Func controllerFilter ) : void
AddController ( Type controller ) : void
DefaultFactoryNameStrategy ( Type controller, MethodInfo action, string route ) : string
RouteReflector ( IRouteReflectorOptions options ) : System
WriteTo ( TypeScriptWriter writer ) : void

Private Methods

Method Description
AddTypeDependencies ( ReflectiveWriter rWriter ) : void
DefaultApiReturnTypeStrategy ( Type controller, MethodInfo action ) : Type
DefaultBuildRouteStrategy ( Type controller, MethodInfo action, string defaultRoute, IRouteReflectorOptions options ) : string
DefaultGetHttpMethodAndRequestFactory ( Type controller, MethodInfo action ) : System
DefaultNameRouteStrategy ( Type controller, MethodInfo action, string route, TeeSquare.WebApi.Reflection.HttpMethod method ) : string
GetDestructuredProperties ( ParameterInfo parameterInfo, string route ) : TeeSquare.WebApi.Reflection.DestructuredPropertyInfo[]
GetParameterKind ( ParameterInfo parameterInfo, string route, TeeSquare.WebApi.Reflection.HttpMethod method ) : ParameterKind
GetRequestParams ( MethodInfo action, string route, TeeSquare.WebApi.Reflection.HttpMethod method ) : TeeSquare.WebApi.Reflection.ParamInfo[]
IsPossibleDto ( Type type ) : bool
ReplaceRoutePlaceholders ( string routeTemplate, Type controller, MethodInfo action, IRouteReflectorOptions options ) : string
WriteRequestTypesAndHelpers ( TypeScriptWriter writer ) : void

Method Details

AddAdditionalTypes() public method

public AddAdditionalTypes ( Array types ) : void
types Array
return void

AddAssembly() public method

public AddAssembly ( Assembly assembly, Func controllerFilter ) : void
assembly Assembly
controllerFilter Func
return void

AddController() public method

public AddController ( Type controller ) : void
controller Type
return void

DefaultFactoryNameStrategy() public static method

public static DefaultFactoryNameStrategy ( Type controller, MethodInfo action, string route ) : string
controller Type
action MethodInfo
route string
return string

RouteReflector() public method

public RouteReflector ( IRouteReflectorOptions options ) : System
options IRouteReflectorOptions
return System

WriteTo() public method

public WriteTo ( TypeScriptWriter writer ) : void
writer TypeScriptWriter
return void