public DynamoDBMembershipTable(ILoggerFactory loggerFactory, IOptions <DynamoDBClusteringSiloOptions> options, IOptions <SiloOptions> siloOptions) { this.loggerFactory = loggerFactory; logger = loggerFactory.CreateLogger <DynamoDBMembershipTable>(); this.options = options.Value; this.clusterId = siloOptions.Value.ClusterId; }
protected override IMembershipTable CreateMembershipTable(ILogger logger) { if (!AWSTestConstants.IsDynamoDbAvailable) { throw new SkipException("Unable to connect to AWS DynamoDB simulator"); } var options = new DynamoDBClusteringSiloOptions() { ConnectionString = this.connectionString, }; return(new DynamoDBMembershipTable(this.loggerFactory, Options.Create(options), this.siloOptions)); }