public UpdateItem(IAmazonDynamoDB dynamoDbClient, IGetItem getItem, IPutItem putItem, IDeleteItem deleteItem)
 {
     _dynamoDbClient = dynamoDbClient;
     _getItem        = getItem;
     _putItem        = putItem;
     _deleteItem     = deleteItem;
 }
 public DynamoDbController(IGetItem getItem, IPutItem putItem, IUpdateItem updateItem, IDeleteItem deleteItem)
 {
     _getItem    = getItem;
     _putItem    = putItem;
     _updateItem = updateItem;
     _deleteItem = deleteItem;
 }
Esempio n. 3
0
 public DynamoDbController(IPutItem putItem, IGetBook getBook, IUpdateItem updateItem, IDeleteItem deleteItem)
 {
     _putItem    = putItem;
     _getBook    = getBook;
     _updateItem = updateItem;
     _deleteItem = deleteItem;
 }
 public AWSProductListDynamoDBController(IAWSProductListDynamoDbExamples dynamoDbExamples, IInsertItem insertItem, IQueryItem queryItem, IDeleteItem deleteItem, IUpdateItem updateItem)
 {
     _dynamoDbExamples = dynamoDbExamples;
     _insertItem       = insertItem;
     _queryItem        = queryItem;
     _deleteItem       = deleteItem;
     _updateItem       = updateItem;
 }
 public DynamoDbController(IGetItem getItem, IPutItem putItem, IUpdateItem updateItem, IDeleteItem deleteItem, IQuery queryItem, IScan scanItem)
 {
     _getItem    = getItem;
     _putItem    = putItem;
     _updateItem = updateItem;
     _deleteItem = deleteItem;
     _queryItem  = queryItem;
     _scanItem   = scanItem;
 }
Esempio n. 6
0
 public DynamoDBController(IDynamoDBExamples dynamoDBExamples, IDeleteTable deleteTable, IAddItem addItem, IGetItem getItem, IUpdateItem updateItem, IDeleteItem deleteItem)
 {
     _dynamoDBExamples = dynamoDBExamples;
     _deleteTable      = deleteTable;
     _addItem          = addItem;
     _getItem          = getItem;
     _updateItem       = updateItem;
     _deleteItem       = deleteItem;
 }
Esempio n. 7
0
 public DynamoDbController(ICreateTable createTable, IPutItem putItem, IGetItem getItem, IUpdateItem updateItem, IDeleteItem deleteItem, ILoadTables loadTables)
 {
     _createTable = createTable;
     _putItem     = putItem;
     _getItem     = getItem;
     _updateItem  = updateItem;
     _deleteItem  = deleteItem;
     _loadTables  = loadTables;
 }
Esempio n. 8
0
 public ImageCommentController(
     [WithKey(ServiceKeys.UserDatabase)] IScalarRepository<string, User> userDatabaseRepository,
     IVectorRepository<int, Comment> imageCommentRepository,
     IAddItem whatsNew,
     IDeleteItem removeNews,
     LatestBroadcastService webSocketService
     )
     : base(userDatabaseRepository)
 {
     this.imageCommentRepository = imageCommentRepository;
     this.whatsNew = whatsNew;
     this.removeNews = removeNews;
     this.webSocketService = webSocketService;
 }
Esempio n. 9
0
 /// <summary>
 /// Instantiates a new <see cref="UserImageController"/> instance.
 /// </summary>
 /// <param name="userImageRepository">The image repository, which stores the images</param>
 public UserImageController(
     [WithKey(ServiceKeys.UserDatabase)] IScalarRepository<string, User> userDatabaseRepository,
     IScalarRepository<int, Image> userImageRepository,
     IVectorRepository<int, Comment> imageCommentsRepo,
     ImageHandleFactory imageHandleFactory,
     IAddItem whatsNew,
     IDeleteItem removeNews,
     LatestBroadcastService webSocketService,
     IGetUserSpaceInfo userSpaceHandles
 )
     : base(userDatabaseRepository)
 {
     this.userImageRepository = userImageRepository;
     this.imageCommentsRepo = imageCommentsRepo;
     this.imageHandleFactory = imageHandleFactory;
     this.whatsNew = whatsNew;
     this.removeNews = removeNews;
     this.webSocketService = webSocketService;
     this.userSpaceHandles = userSpaceHandles;
 }
Esempio n. 10
0
 public ForumPostController(
     [WithKey(ServiceKeys.UserDatabase)] IScalarRepository<string, User> userDatabaseRepository,
     [WithKey(ServiceKeys.ThreadPostContentRepository)] IScalarRepository<int, ThreadPostContent> postRepository,
     [WithKey(ServiceKeys.ThreadPostTitleRepository)] IScalarRepository<int, ThreadPostTitle> titleRepository,
     [WithKey(ServiceKeys.ForumCommentsRepository)] IVectorRepository<int, Comment> forumCommentRepository,
     IAddItem whatsNew,
     IDeleteItem remove,
     IMarkPost markPost,
     LatestBroadcastService webSocketService,
     ILogger<ForumPostController> logger
 ) : base(userDatabaseRepository)
 {
     this.postRepository = postRepository;
     this.forumCommentRepository = forumCommentRepository;
     this.titleRepository = titleRepository;
     this.whatsNew = whatsNew;
     this.remove = remove;
     this.markPost = markPost;
     this.webSocketService = webSocketService;
     this.logger = logger;
 }
Esempio n. 11
0
 public DeleteController(IDeleteItem deleteItem)
 {
     _deleteItem = deleteItem;
 }