Skip to content

MediatRBehaviorAttribute also targets structs#5

Open
stesta wants to merge 1 commit into
ITIXO:mainfrom
stesta:attribute-struct
Open

MediatRBehaviorAttribute also targets structs#5
stesta wants to merge 1 commit into
ITIXO:mainfrom
stesta:attribute-struct

Conversation

@stesta
Copy link
Copy Markdown

@stesta stesta commented Oct 26, 2023

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>;

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

Successfully merging this pull request may close these issues.

1 participant