示例#1
0
 public MongoEventStorage(MongoStorageAttribute mongoAttr, IServiceProvider svProvider)
     : base(svProvider.GetService <IOptions <MongoConfig> >())
 {
     this.mongoAttr       = mongoAttr;
     this.serviceProvider = svProvider;
     mongoConfig          = svProvider.GetService <IOptions <MongoConfig> >();
 }
示例#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;
 }
示例#4
0
 public MongoEventStorage(MongoStorageAttribute mongoAttr, IServiceProvider svProvider)
 {
     this.mongoAttr       = mongoAttr;
     this.serviceProvider = svProvider;
 }