public AdoNetClusteringTable(IGrainReferenceConverter grainReferenceConverter, IOptions <SiloOptions> siloOptions, IOptions <AdoNetClusteringSiloOptions> clusterinOptions, ILogger <AdoNetClusteringTable> logger) { this.grainReferenceConverter = grainReferenceConverter; this.logger = logger; this.clusteringTableOptions = clusterinOptions.Value; this.clusterId = siloOptions.Value.ClusterId; }
protected override IMembershipTable CreateMembershipTable(ILogger logger) { var options = new AdoNetClusteringSiloOptions() { AdoInvariant = GetAdoInvariant(), ConnectionString = this.connectionString, }; return(new AdoNetClusteringTable(this.GrainReferenceConverter, this.siloOptions, Options.Create(options), this.loggerFactory.CreateLogger <AdoNetClusteringTable>())); }
protected override IMembershipTable CreateMembershipTable(ILogger logger) { var options = new AdoNetClusteringSiloOptions() { Invariant = GetAdoInvariant(), ConnectionString = this.connectionString, }; return(new AdoNetClusteringTable(this.Services, this.clusterOptions, Options.Create(options), loggerFactory.CreateLogger <AdoNetClusteringTable>())); }
public AdoNetClusteringTable( IServiceProvider serviceProvider, IOptions <ClusterOptions> clusterOptions, IOptions <AdoNetClusteringSiloOptions> clusteringOptions, ILogger <AdoNetClusteringTable> logger) { this.serviceProvider = serviceProvider; this.logger = logger; this.clusteringTableOptions = clusteringOptions.Value; this.clusterId = clusterOptions.Value.ClusterId; }