public AdoNetReminderTable( IServiceProvider serviceProvider, IOptions <ClusterOptions> clusterOptions, IOptions <AdoNetReminderTableOptions> storageOptions) { this.serviceProvider = serviceProvider; this.serviceId = clusterOptions.Value.ServiceId; this.options = storageOptions.Value; }
public AdoNetReminderTable( IGrainReferenceConverter grainReferenceConverter, IOptions <ClusterOptions> clusterOptions, IOptions <AdoNetReminderTableOptions> storageOptions) { this.grainReferenceConverter = grainReferenceConverter; this.serviceId = clusterOptions.Value.ServiceId.ToString(); this.options = storageOptions.Value; }
protected override IReminderTable CreateRemindersTable() { var options = new AdoNetReminderTableOptions { Invariant = this.GetAdoInvariant(), ConnectionString = this.connectionStringFixture.ConnectionString }; return new AdoNetReminderTable( this.ClusterFixture.Services.GetRequiredService<IGrainReferenceConverter>(), this.siloOptions, Options.Create(options)); }
protected override IReminderTable CreateRemindersTable() { var options = new AdoNetReminderTableOptions { Invariant = this.GetAdoInvariant(), ConnectionString = this.connectionStringFixture.ConnectionString }; return(new AdoNetReminderTable( this.ClusterFixture.Services, this.clusterOptions, Options.Create(options))); }
private static void ConvertToAdoNetReminderTableOptions <T>(Action <T> configureOptions, AdoNetReminderTableOptions options) where T : AdoNetReminderTableOptions, new() { var t = new T(); configureOptions(t); options.Invariant = t.Invariant; options.ConnectionString = t.ConnectionString; }