public DynamoDBMembershipTable(ILoggerFactory loggerFactory, IOptions <DynamoDBMembershipOptions> options, GlobalConfiguration globalConfiguration) { this.loggerFactory = loggerFactory; logger = loggerFactory.CreateLogger <DynamoDBMembershipTable>(); this.options = options.Value; this.deploymentId = globalConfiguration.DeploymentId; }
public DynamoDBMembershipTable(ILoggerFactory loggerFactory, IOptions<DynamoDBMembershipOptions> 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 DynamoDBMembershipOptions() { ConnectionString = this.connectionString, }; return(new DynamoDBMembershipTable(this.loggerFactory, Options.Create(options), this.siloOptions)); }