protected override void ConfigureServiceBus(Uri uri, IServiceBusConfigurator configurator) { base.ConfigureServiceBus(uri, configurator); configurator.UseControlBus(); configurator.UseSubscriptionService(SubscriptionUri); }
/// <summary> /// Specify the endpoint from which messages should be read /// </summary> /// <param name="configurator"></param> /// <param name="uriString">The uri of the endpoint</param> /// <param name="subscriptionSource">Action that returns the subscription configurator.</param> public static IServiceBusConfigurator Configure(this IServiceBusConfigurator configurator, string uriString, Action <ISubscriptionBusServiceConfigurator> subscriptionSource = null) { configurator.ReceiveFrom(uriString.ToUri("The receive endpoint URI is invalid")); configurator.UseRabbitMq(); configurator.UseControlBus(); if (subscriptionSource != null) { configurator.Subscribe(subscriptionSource); } return(configurator); }
protected override void ConfigureServiceBus(Uri uri, IServiceBusConfigurator configurator) { base.ConfigureServiceBus(uri, configurator); IControlBus controlBus = ControlBusConfigurator.New(x => { x.ReceiveFrom(GetControlBusUri(uri)); x.PurgeBeforeStarting(); }); configurator.ConfigureService <SubscriptionClientConfigurator>(y => { // Subscription Endpoint y.SetSubscriptionServiceEndpoint(SubscriptionUri); }); configurator.UseControlBus(controlBus); }
protected override void ConfigureRemoteBus(IServiceBusConfigurator configurator) { base.ConfigureRemoteBus(configurator); configurator.UseControlBus(); }
protected override void ConfigureServiceBus(Uri uri, IServiceBusConfigurator configurator) { base.ConfigureServiceBus(uri, configurator); configurator.UseControlBus(); _received = new Future <A>(); }