/// <summary> /// Registers the given <see cref="IEventDistributor"/> provider. /// </summary> /// <param name="builder">The <see cref="IRepositoryBuilder"/> instance.</param> /// <param name="provider">The <see cref="IEventDistributor"/> instance.</param> /// <returns>The updated <see cref="IRepositoryBuilder"/>.</returns> public static IRepositoryBuilder UseEventDistributor(this IRepositoryBuilder builder, IEventDistributor provider) { Providers.Instance.EventDistributor = provider; return(builder); }
public TopicExchangeHub(string name, ISubscriptionStorage store, IEventDistributor distributor) { Name = name; this.store = store; this.distributor = distributor; }