jamshally / Rebus.Async

:bus: Experimental async extensions for Rebus

Home Page:https://mookid.dk/category/rebus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rebus.Async

install from nuget

Provides an experimental async extension to Rebus that allows for emulating synchronous request/reply in an asynchronous fashion.

Check this out:

var bus = Configure.With(_activator)
	.(...)
	.Options(o => o.EnableSynchronousRequestReply())
	.(...);


// (...)


var reply = await _bus.SendRequest<SomeReply>(new SomeRequest(), timeout: TimeSpan.FromSeconds(7));

// we have the reply here :)


About

:bus: Experimental async extensions for Rebus

https://mookid.dk/category/rebus

License:Other


Languages

Language:C# 92.3%Language:Batchfile 7.7%