_bus = Bus.Factory.CreateUsingRabbitMq(sbc => { var host = sbc.Host(new Uri(busInfo.Address), h => { h.Username(busInfo.UserName); h.Password(busInfo.Password); }); if (!string.IsNullOrEmpty(endpointName)) { sbc.ReceiveEndpoint(host, endpointName, ep => { var repoPath = manager.GetConfig("DocumentRepository"); var directoryInfo = new DirectoryInfo(repoPath); var repo = new FileSystemMessageDataRepository(directoryInfo); ep.UseMessageData<TSubscribeMessage>(repo); // ep.UseRetry(r => r.Immediate(3)); ep.Handler<IDocumentMessage>(BubbleUpMessage); }); } });
_bus = Bus.Factory.CreateUsingRabbitMq(sbc =>
_bus = Bus.Factory.CreateUsingRabbitMq(sbc =>
{ var host = sbc.Host(new Uri(busInfo.Address), h => { h.Username(busInfo.UserName); h.Password(busInfo.Password); }); if (!string.IsNullOrEmpty(endpointName)) { sbc.ReceiveEndpoint(host, endpointName, ep => { var repoPath = manager.GetConfig("DocumentRepository"); var directoryInfo = new DirectoryInfo(repoPath); var repo = new FileSystemMessageDataRepository(directoryInfo); ep.UseMessageData<TSubscribeMessage>(repo); ep.UseRetry(r => r.Immediate(3)); ep.Handler<IDocumentMessage>(BubbleUpMessage); }); } });
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
To post to this group, send email to masstransit-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/0a610de9-f5c3-4c39-9290-52ede3b5c1cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsubscribe...@googlegroups.com.
To post to this group, send email to masstransit-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/0a610de9-f5c3-4c39-9290-52ede3b5c1cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "masstransit-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/masstransit-discuss/u28z96bvwYA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to masstransit-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/CAHX4WYdrEutja_3kV8kVN8c%3DfN%3DM9cAP2stsM_%2BHDO11msG8EA%40mail.gmail.com.
_bus = Bus.Factory.CreateUsingRabbitMq(sbc => { var host = sbc.Host(new Uri(busInfo.Address), h => { h.Username(busInfo.UserName); h.Password(busInfo.Password); }); if (!string.IsNullOrEmpty(endpointName)) { sbc.ReceiveEndpoint(host, endpointName, ep => { var repoPath = manager.GetConfig("DocumentRepository"); var directoryInfo = new DirectoryInfo(repoPath); var repo = new FileSystemMessageDataRepository(directoryInfo);
ep.UseMessageData<IDocumentMessage>(repo);
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/1f54464f-4746-4d6e-a42a-53a50d1d3096%40googlegroups.com.