Skip to content

Instantly share code, notes, and snippets.

@danielmarbach
danielmarbach / nsb_raw_hacks.md
Last active March 10, 2020 07:46 — forked from SzymonPobiega/nsb_raw_hacks.md
Hacks in NServiceBus.Raw

Stuff passed via settings

Things that transport used to require that are passed via settings, not via seam:

Settings.Set("Endpoint.SendOnly", sendOnly);
Settings.Set("TypesToScan", new Type[0]);
Settings.Set("NServiceBus.Routing.EndpointName", endpointName);
Settings.Set<Conventions>(new Conventions()); //Hack for ASB
Settings.Set(new StartupDiagnosticEntries());
@danielmarbach
danielmarbach / Handler.cs
Last active October 11, 2017 07:41
Example sync timeouts
namespace Server
{
public class Handler : IHandleMessages<SynchroniseSite>
{
public IProvideSites SiteProvider { get; set; }
public async Task Handle(SynchroniseSite message, IMessageHandlerContext context)
{
try
{
List<Data> data = new List<Data>();