-
Notifications
You must be signed in to change notification settings - Fork 169
Error in generated code with generic parameter #76
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
I just attempted at moving over to this library but encountered some strange stuff in generated code.
I have decorated my NotificationHandlers with IDomainEventHandler, implementing INotificationHandler, taking generic parameters with TDomainEventbeing constrained to DomainEvent (implements INotification)
... Mediator.SourceGenerator.Roslyn40/Mediator.SourceGenerator.IncrementalMediatorGenerator/Mediator.g.cs(1214,74,1214,86):
error CS0246: The type or namespace name 'TDomainEvent' could not be found (are you missing a using directive or an assembly reference?)
public interface IDomainEventHandler<TDomainEvent>
: INotificationHandler<TDomainEvent>
where TDomainEvent : DomainEvent
{
}services.AddMediator(options =>
{
options.ServiceLifetime = ServiceLifetime.Scoped;
});Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request