Creating a message consumer A message consumer is a class that consumes one or more message types, specified by theIConsumer<T> interface, where T is the message type. public class UpdateCustomerConsumer : IConsumer<UpdateCustomerAddress> { pu…
消息契约的命名规范 命令模式:动词+对象 事件模式:对象+动词 不同模式下要求不同的主键 Creating a message contract In MassTransit, a message contract is defined using the .NET type system. Messages can be defined using both classes and interfaces, however, it is suggested that types use read…