Skip to content

Commit

Permalink
Editorial tweaks sample.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NChaganlal authored Nov 15, 2024
1 parent 137dbc8 commit a701075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/consumer-driven-contracts/sample.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ versions: '[6,)'

## Introduction to consumer-driven contracts

This sample shows a [consumer-driven contract](https://martinfowler.com/articles/consumerDrivenContracts.html)(CDC) approach to messaging. The essence of consumer-driven contracts is that the ownership of the contract is inverted. Instead of the producer providing the definition, consumers define the contract they expect, and it's up to the producer to fulfil it.
This sample shows a [consumer-driven contract](https://martinfowler.com/articles/consumerDrivenContracts.html)(CDC) approach to messaging. The essence of consumer-driven contracts is that the ownership of the contract is inverted. Instead of the producer providing the definition, consumers define the contract they expect, and it's up to the producer to fulfill it.

In NServiceBus terminology, "producers" are called "publishers", and "consumers" are called "subscribers". Contracts translate to message contracts and are defined using plain C# types. To honor a consumer contract, the producer would make the relevant message contract inherit from the consumer contract type.
In NServiceBus terminology, "producers" are called "publishers" and "consumers" are called "subscribers". Contracts translate to message contracts and are defined using plain C# types. To honor a consumer contract, the producer would make the relevant message contract inherit from the consumer contract type.

## Contracts as interfaces

Expand Down

0 comments on commit a701075

Please sign in to comment.