Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Enhancement] Add CommandFactory class #798

@maxkoshevoi

Description

@maxkoshevoi

Summary

Add CommandFactory.Create() that automatically resolves what command (sync or async) user is trying to create and returns an instance of it.
This is helpful because if some method will become async or sync, Create() would automatically return command of needed type. And in general, when creating a command user wouldn't need to think what type it would be, they just need to call Create on whatever method they have.

API Changes

  • static CommandFactory.Create()

Intended Use Case

Replace new Command or new AsyncCommand with CommandFactory.Create:

Who Will Do The Work?

  • I am willing to take this on myself
  • Just putting this out there for someone to pick up

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA request for a new feature.needs-approvalFeature request has been submitted but is awaiting final approval. Please do not implement before!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions