rebus-org / Rebus

:bus: Simple and lean service bus implementation for .NET
https://mookid.dk/category/rebus
Other
2.26k stars 354 forks source link

How to implement a new Transport Mechanism? #840

Closed SuheylZ closed 4 years ago

SuheylZ commented 4 years ago

I wish to use custom In-Memory Transport, NetMQ and also use LiteDB for persistence. Where should I start? Is there any sample or documentation that might be helpful?

mookid8000 commented 4 years ago

You can start by deriving from AbstractRebusTransport, which will give you in-mem buffering of outgoing messages.

You can then create a suite of contract tests by importing the Rebus.Tests.Contracts NuGet package, this way ensuring that your transport behaves as it should.

And then you should simply look at the current transport implementations. 🙂 and then you can ask here, if you have any questions 😃