Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface inheriting from AsyncAspCommand causes failure in Asp DI #7

Open
alexs1305 opened this issue Nov 14, 2018 · 0 comments
Open

Comments

@alexs1305
Copy link
Member

Given that a valid interface and implementing class has been created there is no compile errors however when trying to retrieve the command from DI the program fails.

Take for instance

 public interface IReadUserCommand : IAsyncAspCommand<int,  User>
...
 public class ReadUserCommand : AsyncAspCommand<int,  User>, IReadUserCommand

when ReadUserCommand is called, for instance

await this.ExecuteAsync(this.Command<ReadUserCommand>, 1);

then the program fails to instantiate ReadUserCommand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant