public AdminController(ILogger <AdminController> logger, IMongoTransaction mongoTransaction, IConfiguration configuration) { this._Logger = logger; this._MongoTransaction = mongoTransaction; this._AdminTransaction = new AdminTransaction(this._MongoTransaction, configuration, logger); }
public AdminTransaction(IMongoTransaction mongoTransaction, ILogger<IndexController> logger) { this._MongoTransaction = mongoTransaction; this._Logger = logger; }
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)); }
public IndexController(ILogger <IndexController> logger, IMongoTransaction mongoTransaction) { this._Logger = logger; this._AdminTransaction = new AdminTransaction(mongoTransaction, logger); }