public MongoReminderTable(
     ILogger <MongoReminderTable> logger,
     IOptions <MongoDBRemindersOptions> options,
     IOptions <ClusterOptions> clusterOptions,
     IGrainReferenceConverter grainReferenceConverter)
 {
     this.logger    = logger;
     this.options   = options.Value;
     this.serviceId = clusterOptions.Value.ServiceId ?? string.Empty;
     this.grainReferenceConverter = grainReferenceConverter;
 }
Exemplo n.º 2
0
 public MongoReminderTable(
     IMongoClientFactory mongoClientFactory,
     ILogger <MongoReminderTable> logger,
     IOptions <MongoDBRemindersOptions> options,
     IOptions <ClusterOptions> clusterOptions,
     IGrainReferenceConverter grainReferenceConverter)
 {
     this.mongoClient             = mongoClientFactory.Create(options.Value, "Membership");
     this.logger                  = logger;
     this.options                 = options.Value;
     this.serviceId               = clusterOptions.Value.ServiceId ?? string.Empty;
     this.grainReferenceConverter = grainReferenceConverter;
 }