public AdminServices(IDynamoDbContext <UserServicesItem> dynamodbContext, IDynamoDbContext <UserDetails> dynamoDbUserContex, IDynamoDbContext <BookDetails> dynamoDBBookContext, IDynamoDbContext <InventoryHistory> dynamoDbHistoryContex, IMailService mailService, IMapper mapper) { this._dynamodbContext = dynamodbContext; this._dynamoDBBookContext = dynamoDBBookContext; this._dynamoDbUserContex = dynamoDbUserContex; this._dynamoDbHistoryContex = dynamoDbHistoryContex; this._mailService = mailService; this._mapper = mapper; }
/// <summary> /// Compatibility method. Saves an entity in a way that AWS .NET SDK does. /// </summary> /// <param name="context"></param> /// <param name="entity"></param> /// <param name="cancellationToken"></param> /// <typeparam name="TEntity"></typeparam> /// <remarks> /// Check SaveAsync compatibility section for details: /// https://alloczero.github.io/EfficientDynamoDb/docs/dev-guide/sdk-compatibility#operations /// </remarks> public static async Task SaveAsync <TEntity>(this IDynamoDbContext context, TEntity entity, CancellationToken cancellationToken = default) where TEntity : class { using var httpContent = new UpdateItemSaveHttpContent <TEntity>(context.Config, entity); await context.ExecuteAsync <object>(httpContent, cancellationToken).ConfigureAwait(false); if (httpContent.HasVersion) { httpContent.SetIncrementedVersion(); } }
public UserRepository(IDynamoDbContext dbContext) { _dbContext = dbContext; }
public AccountServices(IDynamoDbContext <UserDetails> context, IMapper mapper, IMailService mailService) { this._context = context; this._mapper = mapper; this._mailService = mailService; }
public InventoryServices(IDynamoDbContext <UserServicesItem> dynamouserService, IDynamoDbContext <BookDetails> dynamoDbContext, IDynamoDbContext <InventoryHistory> dynamoDbHistoryContex) { this._dynamoDbBookContext = dynamoDbContext; this._dynamoDbHistoryContex = dynamoDbHistoryContex; this._dynamouserServices = dynamouserService; }
public ProfileServices(IDynamoDbContext <UserDetails> dynamodbUserContext, IMapper mapper) { this._dynamodbUserContext = dynamodbUserContext; this._mapper = mapper; }
public UserServices(IDynamoDbContext <UserServicesItem> dynamodbContext, IDynamoDbContext <UserDetails> dynamoDbUserContex, IDynamoDbContext <BookDetails> dynamoDBBookContext) { this._dynamodbContext = dynamodbContext; this._dynamoDBBookContext = dynamoDBBookContext; this._dynamoDbUserContex = dynamoDbUserContex; }
/// <summary> /// Compatibility method. Deletes an entity in a way that AWS .NET SDK does. /// </summary> /// <param name="context"></param> /// <param name="entity"></param> /// <param name="cancellationToken"></param> /// <typeparam name="TEntity"></typeparam> /// <remarks> /// Check DeleteAsync compatibility section for details: /// https://alloczero.github.io/EfficientDynamoDb/docs/dev-guide/sdk-compatibility#operations /// </remarks> public static async Task DeleteAsync <TEntity>(this IDynamoDbContext context, TEntity entity, CancellationToken cancellationToken = default) where TEntity : class { using var httpContent = new DeleteEntityHighLevelHttpContent <TEntity>(context.Config, entity); await context.ExecuteAsync <object>(httpContent, cancellationToken).ConfigureAwait(false); }
public ContactsRepository(IDynamoDbContext dbContext) { _dbContext = dbContext; }
public ReminderServices(IDynamoDbContext <InventoryHistory> dynamoDbHistoryContex, IMailService mailService) { this._dynamoDbHistoryContex = dynamoDbHistoryContex; this._mailService = mailService; }
public CustomerDao(IConfiguration config, IDynamoDbContext <CustomerModel> customerContext) { _customerContext = customerContext; _customerDynamoTable = config.GetSection("DynamoDbTables:Customer").Value; }