You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a very strange symptom. Some classes (CommandHandlers) have been decorated and others with exactly the same structure, located in a different directory (different namespace) are not.
I have no idea where to look for the cause.
The class structure is as follows:
internal static class Create
{
public record Command( ... ) : ICommand<int>;
public class CommandHandler : ICommandHandler<Command, int>
{
...
}
}
Dispatcher looks like this:
public async Task<TResult> SendAsync<TResult>(ICommand<TResult> command, CancellationToken token = default)
{
var handlerType = typeof(ICommandHandler<,>).MakeGenericType(command.GetType(), typeof(TResult));
using var scope = _serviceFactory.CreateScope();
var handler = scope.ServiceProvider.GetRequiredService(handlerType);
...
}
I don't know what to tell you; it sounds weird to me too, but until I have a repro, there's not much I can do with the little information I have from this issue 😔
I have a very strange symptom. Some classes (CommandHandlers) have been decorated and others with exactly the same structure, located in a different directory (different namespace) are not.
I have no idea where to look for the cause.
The class structure is as follows:
Dispatcher looks like this:
Registration:
I have absolutely no idea why decorating works that inconsistently. 😢
The text was updated successfully, but these errors were encountered: