public static ICompositeContainerBuilder AddRabbitMq(this ICompositeContainerBuilder composite) { return(composite .AddSettings() .AddMessaging() .AddPlugin <RabbitMqPlugin>() .InitPluginConfig <MessageDispatchConfig>(config => config.AddPublisher <RabbitMqPublisher>())); }
/// <summary> /// Adds a plugin to the composite container that can be used to communicate with /// a Redis database. The plugin also allows subscribing domain-events to Redis /// channels. /// </summary> /// <param name="composite">Reference to the composite container builder.</param> /// <returns>Reference to the composite container builder.</returns> public static ICompositeContainerBuilder AddRedis(this ICompositeContainerBuilder composite) { return(composite .AddSettings() .AddMessaging() .AddPlugin <RedisPlugin>() // Extends core messaging by added the Redis published to the pipeline. .InitPluginConfig <MessageDispatchConfig>(config => config.AddPublisher <RedisPublisher>())); }
public static ICompositeContainerBuilder AddEntityFramework(this ICompositeContainerBuilder composite) { return(composite.AddSettings() .AddPlugin <EntityFrameworkPlugin>()); }
/// <summary> /// Adds a plugin to the composite container providing services to query MongoDb. /// </summary> /// <param name="composite">Reference to the composite container builder.</param> /// <returns>Reference to the composite container builder.</returns> public static ICompositeContainerBuilder AddMongoDb(this ICompositeContainerBuilder composite) { return(composite.AddSettings() .AddPlugin <MongoDbPlugin>()); }