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

Compilation fails with nested command #145

Open
cocowalla opened this issue Mar 17, 2020 · 1 comment
Open

Compilation fails with nested command #145

cocowalla opened this issue Mar 17, 2020 · 1 comment

Comments

@cocowalla
Copy link

I like to arrange things into feature folders (which is a popular way of doing things with Mediatr too), such as:

+ Features
  + Widgets
    - Get.cs
    - Delete.cs
    - Put.cs
  + Fidgets
    - ...

Get.cs looks a bit like:

namespace Acme.Features.Widgets
{
    public class Get
    {
        public class Command: ICommand<string>
        {
            // ...
        }

        public class CommandHandler : ICommandHandler<Command, string>
        {
            // ...
        }
    }
}

However, when trying to build I get:

FunctionMonkey.Compiler.targets(29, 5): Command Acme.Features.Widgets.Get+Command must be public

As you can see, the nested classes in question are public.

@andrewdmoreno
Copy link

@cocowalla I ran into this yesterday as well. It's a common structure that is used often with Mediatr so for my initial exploration of the integration with FunctionMonkey I started with that approach as well. Worked around it for now but agreed that would be great to have resolved.

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

2 participants