public EventRepository(
     IEventTypeIdentifierProvider eventTypeIdentifierProvider,
     IEventLogger eventLogger,
     IShardCalculator shardCalculator,
     ISerializer serializer)
 {
     this.eventTypeIdentifierProvider = eventTypeIdentifierProvider;
     this.eventLogger     = eventLogger;
     this.shardCalculator = shardCalculator;
     this.serializer      = serializer;
 }
 public EventRepositoryFactory(
     ISerializer serializer,
     ICassandraCluster cassandraCluster,
     IEventTypeIdentifierProvider eventTypeIdentifierProvider,
     ILog logger)
 {
     this.serializer                  = serializer;
     this.cassandraCluster            = cassandraCluster;
     this.eventTypeIdentifierProvider = eventTypeIdentifierProvider;
     this.logger = logger.ForContext("CassandraPrimitives.EventLog");
 }