Exemple #1
0
 public MongoEventStorage(MongoStorageAttribute mongoAttr, IServiceProvider svProvider)
     : base(svProvider.GetService <IOptions <MongoConfig> >())
 {
     this.mongoAttr       = mongoAttr;
     this.serviceProvider = svProvider;
     mongoConfig          = svProvider.GetService <IOptions <MongoConfig> >();
 }
Exemple #2
0
 public MongoEventStorage(IMongoStorage mongoStorage, ILogger <MongoEventStorage <K> > logger, MongoStorageAttribute mongoAttr)
 {
     this.mongoStorage = mongoStorage;
     this.mongoAttr    = mongoAttr;
     this.logger       = logger;
 }
 public MongoEventStorage(MongoStorageAttribute mongoAttr)
 {
     this.mongoAttr = mongoAttr;
 }
Exemple #4
0
 public MongoEventStorage(MongoStorageAttribute mongoAttr, IServiceProvider svProvider)
 {
     this.mongoAttr       = mongoAttr;
     this.serviceProvider = svProvider;
 }