Example #1
0
        public AdminController(ILogger <AdminController> logger, IMongoTransaction mongoTransaction, IConfiguration configuration)
        {
            this._Logger = logger;

            this._MongoTransaction = mongoTransaction;

            this._AdminTransaction = new AdminTransaction(this._MongoTransaction, configuration, logger);
        }
Example #2
0
 public AdminTransaction(IMongoTransaction mongoTransaction, ILogger<IndexController> logger)
 {
     this._MongoTransaction = mongoTransaction;
     this._Logger = logger;
 }
Example #3
0
 public AdminTransaction(IMongoTransaction mongoTransaction, IConfiguration configuration, ILogger<AdminController> logger)
 {
     this._MongoTransaction = mongoTransaction;
     this._Configuration = configuration;
     this._Logger = logger;
 }
 public Task <ITransaction> StartTransactionAsync()
 {
     Transaction = new MongoTransaction(_mongoClient);
     return(Task.FromResult((ITransaction)Transaction));
 }
Example #5
0
        public IndexController(ILogger <IndexController> logger, IMongoTransaction mongoTransaction)
        {
            this._Logger = logger;

            this._AdminTransaction = new AdminTransaction(mongoTransaction, logger);
        }