Commit Graph

55 Commits

Author SHA1 Message Date
Mark van Renswoude 4ce318b560 #43 Move binding related attributes to Tapeti Core 2023-04-14 15:47:50 +02:00
Mark van Renswoude 6b38d59468 Fixed #39: Stateless Request-Response does not filter target controller method
Added NoBinding attribute
2023-04-13 08:39:43 +02:00
Mark van Renswoude 97672f4321 Implemented nullable reference types support 2022-11-23 09:13:38 +01:00
Mark van Renswoude bcdb376256 Fixed queue arguments error due to wrong value types
Added test for publish overflows
Removed support for Unity Container
Changed third party package references to ranges
Fixed XML documentation
2022-11-22 13:20:47 +01:00
Mark van Renswoude 7143ad3c2f Implemented QueueArgumentsAttribute (untested) 2022-11-17 16:47:07 +01:00
Mark van Renswoude d6138e2cfa Downgraded language version to 8
Hasn't seem to cause any issues in older .NET versions yet (only used new syntax features), but this will prevent using most unsupported new features for .NET Standard 2.0
2022-11-17 13:32:59 +01:00
Mark van Renswoude adde0c3c8d Reduced Invoke overhead for controller methods 2022-02-10 10:16:16 +01:00
Mark van Renswoude 3aee6f1c53 Fixed #38 Durable queues are verified more than once
Caused by non thread-safe code when applying bindings. Replaced Task.WhenAll with a simple loop, as the performance benefits are negligable and it's only at startup anyways.
Also changed binding methods to use ValueTask.
2022-02-09 12:42:05 +01:00
Mark van Renswoude 165680fd38 Added ValueTask support
- This is a breaking change for custom middleware implementations
Added validation for return type handling
- This may be breaking for incorrect implementations, but highly unlikely
2022-02-09 11:27:07 +01:00
Mark van Renswoude b816e56018 Code style cleanup 2022-02-09 09:50:25 +01:00
Mark van Renswoude bc00d476bd Implemented adding requests to parallel flow
Fixed console logger outputting incorrect message when declaring queues
2021-12-10 09:56:37 +01:00
Mark van Renswoude 56a842ea5c Implemented #37 Support injection of CancellationToken in message handlers 2021-10-29 15:47:48 +02:00
Mark van Renswoude a9a38f2497 Fixed Flow response messages blocking the consumer
Caused by non-async disposable payload in MessageContext never being disposed
2021-09-16 12:26:11 +02:00
Mark van Renswoude 66a0ec116b Fixed a few code hints 2021-09-05 10:05:04 +02:00
Mark van Renswoude e83645cdc4 Changed IExceptionStrategy to async 2021-09-05 10:03:29 +02:00
Mark van Renswoude be576a2409 Implemented #31: Include message details in exception logging (optionally)
Refactored IControllerMessageContext into context payloads to get access to it in the exception handler
2021-09-02 16:16:44 +02:00
Mark van Renswoude 5a90c1e0a5 Added support for consuming incompatible durable queues without breaking 2021-09-02 13:58:01 +02:00
Mark van Renswoude f4d008d6a9 Added data to controller method exceptions, like Tapeti Flow does for yield point exceptions
Closes #25, stack traces seem fine in test scenarios
2021-07-18 13:49:01 +02:00
Mark van Renswoude ce377810c8 Separated publishing into separate channel and task queue
Hopefully fixes #23
2021-07-18 13:27:10 +02:00
Mark van Renswoude a3e3a266e2 Implemented RoutingKey attribute 2021-06-04 11:51:45 +02:00
Mark van Renswoude e25fa5aa52 Implemented IAsyncDisposable 2021-06-02 20:56:10 +02:00
Mark van Renswoude 1be1b599a0 Updated all references NuGet packages to latest stable version
Fixed ReSharper code issues
2021-05-29 21:52:07 +02:00
Mark van Renswoude 0b7c84a119 Ignore OperationCanceledException as well when shutting down 2021-01-18 14:17:07 +01:00
Frederik 13833040e8 Possible fix for #21 - Same request/response twice in flow does not continue? 2020-06-11 16:36:55 +02:00
Mark van Renswoude 6e31b77b26 Added logging for binding operations
- IBindingLogger interface implemented in the included implementations (Console and Serilog)
Added documentation for Tapeti.Cmd
2020-03-05 10:27:46 +01:00
Mark van Renswoude 2745d18779 Implemented stateless request-response support 2020-02-12 11:34:51 +01:00
Hans Mulder 74a3aa19f7 Pass parameter consumeResult to handle.Cleanup - fixed cleanup state after exception 2020-01-17 14:16:13 +01:00
Mark van Renswoude 2e2a77a7ae Possible fix for #18 Two consumers from same connection after reconnect
- Consume calls still in the TapetiClient task queue while it is reconnecting would not be cancelled, but new calls were added as well after the reconnect
- Unrelated but useful: added LocalPort and Disconnect event to logging
2019-10-10 16:03:47 +02:00
Mark van Renswoude bef3961f7f Added support for the Obsolete attribute to remove bindings and queues with backwards compatibility
Updated license in nuspec to comply with the new specifications
2019-08-20 11:47:53 +02:00
Mark van Renswoude c63b821b87 Fixed #11: Do not persist flow for dynamic queues 2019-08-19 09:33:07 +02:00
Mark van Renswoude 196aa63a4a [ci skip] Fixed the last of the ReSharper code issues 2019-08-15 16:00:04 +02:00
Mark van Renswoude 0aa44cfefd [ci skip] Fixed: Binding.ForMethod failed because ControllerMethodBinding did not implement IControllerMethodBinding 2019-08-15 12:10:29 +02:00
Mark van Renswoude fed377992b [ci skip] Done with XML documentation for now
Made a few classes internal that were supposed to be
2019-08-15 11:26:55 +02:00
Mark van Renswoude 314a67db00 [ci skip] Bit of refactoring and bugfixing, mostly documentation 2019-08-14 20:48:40 +02:00
Mark van Renswoude 6c32665c8a [ci skip] Refactored how consume result is handled
Reimplemented the exception strategy and logging
Much XML documentation, such wow
2019-08-14 12:20:53 +02:00
Mark van Renswoude f8fca5879c [ci skip] Major refactoring for 2.0
- Compiles, but that's about it. Plenty of ToDo's left before it will run. Beware, ye who enter here.
- Cleanup of the internals, with the aim to keep the interface to application code compatible
- Added the ability to declare durable queues on startup and update the bindings
- Possibly fixed an issue with publish timeouts being logged after a reconnect
2019-08-13 20:30:04 +02:00
Menno van Lavieren 5cebe96aff MAX-911 RDB Relaties samenvoegen vanuit LEF en update ontvangen in LEF
MAX-1081 POC Dictionary tasks in Web voor request
Bug fix reply moet ook bij de default handler niet mandatory kunnen zijn.
2019-04-25 16:06:54 +02:00
Mark van Renswoude 45c090d00d Fixed #8: Forwards compatibility of enums 2019-02-14 15:08:04 +01:00
Mark van Renswoude 60c7020a2c Fixed #6: Use 'mandatory' on replies 2019-02-14 15:08:04 +01:00
Mark van Renswoude 37d55ac71d Fixed #7: Do not allow null for reply object in case of a Request attribute 2019-02-14 15:08:03 +01:00
Mark van Renswoude dcd22742e7 Implemented logging for connection events 2019-01-08 16:36:52 +01:00
Mark van Renswoude 182459edbc Controller and method name in TopologyConfigurationException 2019-01-07 16:53:30 +01:00
Mark van Renswoude f6c4ccdadc Fixed NRE with async methods returning a message 2018-12-21 10:50:06 +01:00
Mark van Renswoude 74985e45de Fixed all ReSharper issues
Some are silly, like the "member not used" for public interfaces. The comments everywhere are ugly, sorry, but it keeps the possibly important issues visible without a dependency on some ReSharper annotations package.
2018-12-19 20:50:56 +01:00
Menno van Lavieren ee86e2c739 RDB-136 Flow tabel wordt niet meer opgeruimd Bij een exceptie in Flow
Refactoring om de actie van de Exceptionstrategie door te geven aan de cleanup stack
2017-10-17 13:29:16 +02:00
Menno van Lavieren 9f30c1ec74 Tapeti Consumer HandleBasicDeliver schedules a Task asynchronously to handle the messages 2017-08-30 17:47:43 +02:00
Menno van Lavieren d386a3101e Bug fix in nested context disposing 2017-07-10 14:14:54 +02:00
Menno van Lavieren 06654b099a Allow Message middleware to septup a nested context and call 'next' multiple times 2017-07-07 10:59:12 +02:00
Mark van Renswoude 20ac467006 Fixed #6: Provide a way to start a flow outside of a message handler
Fixed Continuation methods binding to dynamic queues
2017-02-15 22:05:01 +01:00
Mark van Renswoude 52ad9a4fc6 Fixed Tapeti trying to publish return types of type Task 2017-02-13 15:47:57 +01:00