コード例 #1
0
        private ICommand MakeGetSectionByIdCommand()
        {
            return(new Command(
                       "get_section_by_id",

                       new ObjectSchema()
                       .WithRequiredProperty("id", TypeCode.String),
                       async(correlationId, args) =>
            {
                string Id = args.GetAsNullableString("id");
                return await _logic.GetSectionByIdAsync(correlationId, Id);
            }
                       ));
        }