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
- Ability to call `AddMediator` to entry assembly and have it register handlers in all assemblies
376
376
-[ ] Clean architecture sample app
377
377
-[ ] Modular monolith architecture sample app
378
+
-[ ] Switch source generator package name back to Foundatio.Mediator (maybe Foundatio.Mediator.Abstractions)
379
+
-[ ] Figure out issue with props / targets files not being included
380
+
-[ ] See if we can support streaming with IAsyncEnumerable
381
+
-[ ] Talk about lifetime. Handlers aren't registered in DI by default and are singleton instances. Just add your handler or services to DI if you want a different behavior.
382
+
-[ ] Add GeneratedCodeAttribute
383
+
-[ ] Talk about for tuple returns / cascading messages, if a middleware short circuits the response, the value will be returned as the first tuple item and all others will be null or default.
result=$" {m.Middleware.Identifier.ToCamelCase()}Result.Value is Foundatio.Mediator.Result result ? ({handler.ReturnType.UnwrappedFullName})result : ({handler.ReturnType.UnwrappedFullName}?){m.Middleware.Identifier.ToCamelCase()}Result.Value ?? default({handler.ReturnType.UnwrappedFullName})!";
186
+
result=$" {m.Middleware.Identifier.ToCamelCase()}Result.Value is Foundatio.Mediator.Result result ? ({handler.ReturnType.UnwrappedFullName})result : ({handler.ReturnType.UnwrappedFullName}?){m.Middleware.Identifier.ToCamelCase()}Result.Value!";
187
+
}
188
+
elseif(handler.ReturnType.IsTuple)
189
+
{
190
+
result=$" (({m.Middleware.Identifier.ToCamelCase()}Result.Value is Foundatio.Mediator.Result result ? ({handler.ReturnType.TupleItems.First().TypeFullName})result : ({handler.ReturnType.TupleItems.First().TypeFullName}?){m.Middleware.Identifier.ToCamelCase()}Result.Value!), {String.Join(", ",handler.ReturnType.TupleItems.Skip(1).Select(i =>i.IsNullable?"null":"default"))})";
0 commit comments