Exemple #1
0
 /// <summary>Parameterized constructor.
 /// </summary>
 /// <param name="connectionString"></param>
 /// <exception cref="ArgumentNullException"></exception>
 public SqlEventStore(string connectionString)
 {
     if (string.IsNullOrEmpty(connectionString))
     {
         throw new ArgumentNullException("connectionString");
     }
     _connectionString = connectionString;
     _eventTableProvider = ObjectContainer.Resolve<IEventTableNameProvider>();
     _jsonSerializer = ObjectContainer.Resolve<IJsonSerializer>();
     _connectionFactory = ObjectContainer.Resolve<IDbConnectionFactory>();
     _aggregateRootTypeProvider = ObjectContainer.Resolve<IAggregateRootTypeProvider>();
 }