Exemple #1
0
 public static void UseServerCallWriter <T>(this DryvDynamicControllerOptions options) where T : IDryvClientServerCallWriter
 {
     options.DynamicControllerCallWriterType = typeof(T);
 }
Exemple #2
0
        public static void MapActionFilters(this DryvDynamicControllerOptions options, Func <DryvControllerGenerationContext, IEnumerable <Expression <Func <Attribute> > > > filters)
        {
            FilterExpressionValidator.ValidateFilterExpressions(filters);

            options.MapActionFilters = filters;
        }
Exemple #3
0
 public static void MapRouteTemplate(this DryvDynamicControllerOptions options, Func <DryvControllerGenerationContext, string> template)
 {
     options.MapRouteTemplate = template;
 }
Exemple #4
0
 public static void MapEndpoint(this DryvDynamicControllerOptions options, Action <DryvControllerGenerationContext, IEndpointRouteBuilder> mapper)
 {
     options.MapEndpoint = mapper;
 }