![]() No more calling GetPayload or other methods to get access to the ConsumeContext! Seriously, this is awesome.Īs part of this change, the. This significantly improves the usability of MassTransit features in state machine. The state machine interfaces, BehaviorContext and BehaviorContext are now derived from SagaConsumeContext and SagaConsumeContext. Observers registered in the container will be connected to the bus automatically, including: Observer Type NET health checks are added as well, and may be included on health check endpoints. The host can be configured using IOptions configuration support, such as shown below: This package is no longer required, and MassTransit will automatically add an IHostedService for MassTransit. Previous versions of MassTransit required the use of the MassTransit.AspNetCore package to support registration of MassTransit's hosted service. To continue using Newtonsoft for serialization, add the MassTransit.Newtonsoft package and specify one of the configuration methods when configuring the bus: Refer to Microsoft's Migration Guide (opens new window) if you encounter any serialization issues after upgrading. Some configuration interfaces have been removed/changed names: Original Remove any using statements that for namespaces that no longer exist.Any of the third-party container assemblies.Automatonymous.Visualizer -> MassTransit.StateMachineVisualizer.NewId (still available separately, do not use in a project referencing MassTransit).Remove any references to packages that were not updated with v8.While this list doesn't cover everything, these are the main items experienced so far when upgrading from a previous version. When upgrading from previous versions of MassTransit, there are a few initial steps to get up and running. The entire developer surface area, for the most part, exists within the MassTransit namespace. A lot of common questions result in a missing using statement, and now that should no longer be the case. This means that every aspect of MassTransit is now within a single namespace, which makes it easy to find the right interface, extension, and whatever else is needed. Focused on the developer experience, while maintaining compatibility with previous versions, this release brings together the entire MassTransit stack.Īutomatonymous, Green Pipes, and NewId have been completely integrated into a single MassTransit solution. ![]() MassTransit v8 works a significant portion of the underlying components into a more manageable solution structure. ![]() MassTransit v8 is the first major release since the availability of. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |