Пример #1
0
 public DynamoDBMembershipTable(ILoggerFactory loggerFactory, IOptions <DynamoDBMembershipOptions> options, GlobalConfiguration globalConfiguration)
 {
     this.loggerFactory = loggerFactory;
     logger             = loggerFactory.CreateLogger <DynamoDBMembershipTable>();
     this.options       = options.Value;
     this.deploymentId  = globalConfiguration.DeploymentId;
 }
Пример #2
0
 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;
 }
Пример #3
0
        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));
        }