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; }
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; }