Files
server/src/Core/Services/Implementations/RepositoryEventWriteService.cs

29 lines
753 B
C#
Raw Normal View History

2017-12-04 09:58:07 -05:00
using System.Threading.Tasks;
using Bit.Core.Repositories;
using System.Collections.Generic;
using Bit.Core.Models.Data;
2017-12-04 09:58:07 -05:00
namespace Bit.Core.Services
{
public class RepositoryEventWriteService : IEventWriteService
{
private readonly IEventRepository _eventRepository;
public RepositoryEventWriteService(
2017-12-08 16:03:20 -05:00
IEventRepository eventRepository)
2017-12-04 09:58:07 -05:00
{
_eventRepository = eventRepository;
}
public async Task CreateAsync(EventTableEntity entity)
2017-12-04 09:58:07 -05:00
{
await _eventRepository.CreateAsync(entity);
}
public async Task CreateManyAsync(IList<EventTableEntity> entities)
2017-12-04 09:58:07 -05:00
{
await _eventRepository.CreateManyAsync(entities);
}
}
}