Skip to content

Document complex object binding #651

Open
@cmeyertons

Description

@cmeyertons

I've been creating all of my handlers according to the documentation like this:

command.Handler = CommandHandler.Create((IEnumerable<string> include, int count) =>
            {
                var request = new SchemaRollbackRequest(include, count);

                var svc = Container.ResolveService<ISchemaService>();

                svc.RollbackSchema(request);
            });

and it's a huge pain to update the args for every new option (requires multiple updates).

i just started creating a new command that required more than 7 options and stumbled across #458 where it's discussed to bind to a complex object, which fits my use case perfectly.

can documentation be added around the complex object binding?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions