public override async Task ForwardSubscribe(Subscriber subscriber, string publisherEndpoint, string messageType, IRawEndpoint dispatcher, InterBridgeRoutingSettings forwarding) { var type = typeGenerator.GetType(messageType); await subscriptionManager.Subscribe(type, new ContextBag()).ConfigureAwait(false); await Send(subscriber, publisherEndpoint, messageType, MessageIntentEnum.Subscribe, dispatcher, forwarding).ConfigureAwait(false); }
public void Start() { _subscriptionManager.Subscribe(null, Address.Parse("AsbEndpoint@" + SettingsHolder.Get<string>("NServiceBus.Transport.ConnectionString"))); }
protected override Task ForwardSubscribe(Subscriber subscriber, string publisherEndpoint, string messageType, IRawEndpoint dispatcher) { var type = GetType(messageType); return(subscriptionManager.Subscribe(type, new ContextBag())); }
public void Start() { _subscriptionManager.Subscribe(typeof(TestEventA), Address.Parse("MsmqEndpoint@localhost")); }
protected override async Task <bool> Terminate(ForwardSubscribeContext context) { await subscriptionManager.Subscribe(context.MessageRuntimeType, context).ConfigureAwait(false); return(true); }