public static ITable Create(ILazyProvider <IAmazonDynamoDB> client, string tableName) { return(new TableProxy(client, tableName)); }
private TableProxy(ILazyProvider <IAmazonDynamoDB> client, string tableName) { this.client = client; TableName = tableName; }
protected BaseRepository(IAmazonDynamoDB client, ITable table) { clientProvider = new LazyProvider <IAmazonDynamoDB>(() => client); Table = table; }
public BlogRepository(IApplicationConfig config, ILazyProvider <IAmazonDynamoDB> clientProvider) : base(clientProvider, config.BlogPostTableName) { }
protected BaseRepository(ILazyProvider <IAmazonDynamoDB> clientProvider, string tableName) { this.clientProvider = clientProvider; Table = TableProxy.Create(clientProvider, tableName); }