public SqlDbService(EventSaucingConfiguration configuration)
 {
     _connectionString = configuration.ConnectionString;
 }
 public InMemoryCommitSerialiserCache(EventSaucingConfiguration config) : this(config.MaxCommitsToCacheInMemory)
 {
 }
        /// <summary>
        /// Registers modules required for EventSaucing.  nb, if you want to use reactors there is an additional module to register <see cref="TEventSaucing.DependencyInjection.Autofac.ReactorInfrastructureModule"/>
        ///
        /// </summary>
        /// <param name="builder">The builder to register the modules with.</param>
        /// <param name="connectionString">The connection string to the db store.</param>
        /// <exception cref="T:System.ArgumentNullException">Thrown if <paramref name="builder"/> or <paramref name="configuration"/> is <see langword="null"/>.</exception>
        /// <returns>
        /// The <see cref="T:Autofac.Core.Registration.IModuleRegistrar"/> to allow
        ///             additional chained module registrations.
        ///
        /// </returns>
        public static IModuleRegistrar RegisterEventSaucingModules(this ContainerBuilder builder, EventSaucingConfiguration configuration)
        {
            if (builder == null)
            {
                throw new ArgumentNullException("builder");
            }
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }

            builder.RegisterInstance(configuration);
            return(builder
                   .RegisterModule(new DatabaseConnectivity())
                   .RegisterModule(new NEventStoreModule(true))
                   .RegisterModule(new AkkaModule(configuration)));
        }
Example #4
0
 public AkkaModule(EventSaucingConfiguration config)
 {
     this.actorsystemname = config.ActorSystemName;
 }