Beispiel #1
0
 public static ICompositeContainerBuilder AddRabbitMq(this ICompositeContainerBuilder composite)
 {
     return(composite
            .AddSettings()
            .AddMessaging()
            .AddPlugin <RabbitMqPlugin>()
            .InitPluginConfig <MessageDispatchConfig>(config =>
                                                      config.AddPublisher <RabbitMqPublisher>()));
 }
Beispiel #2
0
        /// <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>()));
        }
Beispiel #3
0
 public static ICompositeContainerBuilder AddEntityFramework(this ICompositeContainerBuilder composite)
 {
     return(composite.AddSettings()
            .AddPlugin <EntityFrameworkPlugin>());
 }
Beispiel #4
0
 /// <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>());
 }