Пример #1
0
        public KafkaEFGameRepository(GameCentralContext gameCentralContext) : base(gameCentralContext)
        {
            var config = new ProducerConfig {
                BootstrapServers = "localhost:9092",
            };

            Producer = new ProducerBuilder <string, Game>(config).SetValueSerializer(new GameSerializer()).Build();
        }
Пример #2
0
 public EfGameCentralRepository(GameCentralContext gameCentralContext)
 {
     GameCentralContext = gameCentralContext;
 }