コード例 #1
0
 private ICommand MakeGetSectionIdsCommand()
 {
     return(new Command(
                "get_section_ids",
                new ObjectSchema()
                .WithOptionalProperty("filter", new FilterParamsSchema())
                .WithOptionalProperty("paging", new PagingParamsSchema()),
                async(correlationId, args) =>
     {
         FilterParams filter = FilterParams.FromValue(args.Get("filter"));
         PagingParams paging = PagingParams.FromValue(args.Get("paging"));
         return await _logic.GetSectionIdsAsync(correlationId, filter, paging);
     }));
 }