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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
651 B
C#
Raw Normal View History

using Bit.Core.Models.Data;
2017-12-04 09:58:07 -05:00
using Bit.Core.Repositories;
namespace Bit.Core.Services
2017-12-04 09:58:07 -05:00
{
public class RepositoryEventWriteService : IEventWriteService
2022-08-29 14:53:16 -04:00
{
private readonly IEventRepository _eventRepository;
2017-12-04 09:58:07 -05:00
public RepositoryEventWriteService(
IEventRepository eventRepository)
{
_eventRepository = eventRepository;
}
2017-12-04 09:58:07 -05:00
public async Task CreateAsync(IEvent e)
{
await _eventRepository.CreateAsync(e);
}
public async Task CreateManyAsync(IEnumerable<IEvent> e)
{
await _eventRepository.CreateManyAsync(e);
}
2017-12-04 09:58:07 -05:00
}
}