Beispiel #1
0
 public Controller(
     IClusterClient clusterClient,
     ITournamentQueryHandler tournamentQueryHandler)
 {
     _clusterClient          = clusterClient;
     _tournamentQueryHandler = tournamentQueryHandler;
 }
 public TeamSubscriber(
     PostgresOptions postgresOptions,
     ITournamentQueryHandler tournamentQueryHandler)
     : base(
         new StreamConfig(Constants.InMemoryStream, Constants.TeamNamespace))
 {
     _tournamentQueryHandler = tournamentQueryHandler;
     _projectionManager      = new ProjectionManager <TeamProjection>("read", "team_projection", postgresOptions);
 }