Skip to content

Commit ac2ab33

Browse files
authored
Merge pull request #18 from fretje/invoke
Use Invoke iso DynamicInvoke
2 parents 78a39cd + 6a4e93d commit ac2ab33

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Pipelines now fully written in github actions
77
- Updated dependencies
88
- Added documentation comments to `ICourier`, `CourierInjector` and `CourierOptions`
9+
- Use Invoke iso DynamicInvoke for better performance
910

1011
# 6.0.0
1112
- Update MediatR to version 12

MediatR.Courier.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A8938C37-CC38-403C-9696-04D909027374}"
1111
ProjectSection(SolutionItems) = preProject
1212
.editorconfig = .editorconfig
13+
CHANGELOG.md = CHANGELOG.md
1314
Directory.Build.props = Directory.Build.props
1415
EndProjectSection
1516
EndProject

MediatR.Courier/MediatRCourier.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async Task HandleLocal(INotification n, CancellationToken c)
4747
? new object[] { n, c }
4848
: new object[] { n };
4949

50-
var result = action.DynamicInvoke(parameters);
50+
var result = action.Method.Invoke(action.Target, parameters);
5151
if (result is Task task) await task.ConfigureAwait(_options.CaptureThreadContext);
5252
}
5353
}

0 commit comments

Comments
 (0)