Exemplo n.º 1
0
 public CanalLogDbContext(MongoOutputOptions outputOptions)
     : base(outputOptions)
 {
 }
 public MongoDbContext(MongoOutputOptions outputOptions)
 {
     mongoClient   = new MongoClient(outputOptions.ConnectionString);
     mongoDatabase = mongoClient.GetDatabase(outputOptions.DataBase);
 }
Exemplo n.º 3
0
 public MongoCanalRepository(MongoOutputOptions options)
 {
     _options      = options;
     _logDbContext = new CanalLogDbContext(_options);
 }