Instructions for Use - 802701ad/EzESB GitHub Wiki
The concept behind this ESB is that there are producers and consumers. A producer should do an HTTP POST to /Default/Send in the ESB like this:
var w = new Utility.WebAddress("http://localhost/Default/Send");//get from /Model/Util.WebAddress.cs
w.GetParams["message_type"] = "xxxx-yyyy-zzzz-aaaa-bbbb";
w.PostParams["sample_field_1"] = "a";
w.PostParams["sample_field_2"] = "lorem ipsum";
w.Post();
The ESB will issue a receipt by returning a GUID. The ESB will then relay the message to all the consumers who have subscribed in the t_consumer table to the message_type the in the sending POST. Each consumer will get a post request with the same parameters. In the event that a HTTP status code of 500 is returned, the ESB will retry that consumer at least 10 times with increasing delays after each unsuccessful attempt.