ITIXO / MediatR.Extensions.AttributedBehaviors

MIT License
28 stars 5 forks source link

MediatRBehaviorAttribute also targets structs #5

Open stesta opened 11 months ago

stesta commented 11 months ago

The intention with this PR is to allow attributed behaviors when the MediatR request happens to be a struct.

[MediatRBehavior(typeof(MyFirstPipelineBehavior<MyRequest, MyReturnType>))]
public record struct MyRequest(string Id) : IRequest<MyReturnType>;