mirror of
https://github.com/bitwarden/server.git
synced 2026-02-01 14:43:10 +08:00
32 lines
907 B
C#
32 lines
907 B
C#
|
|
using System.Threading.Tasks;
|
|||
|
|
using Bit.Core.Repositories;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using Microsoft.WindowsAzure.Storage.Table;
|
|||
|
|
|
|||
|
|
namespace Bit.Core.Services
|
|||
|
|
{
|
|||
|
|
public class RepositoryEventWriteService : IEventWriteService
|
|||
|
|
{
|
|||
|
|
private readonly IEventRepository _eventRepository;
|
|||
|
|
private readonly GlobalSettings _globalSettings;
|
|||
|
|
|
|||
|
|
public RepositoryEventWriteService(
|
|||
|
|
IEventRepository eventRepository,
|
|||
|
|
GlobalSettings globalSettings)
|
|||
|
|
{
|
|||
|
|
_eventRepository = eventRepository;
|
|||
|
|
_globalSettings = globalSettings;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public async Task CreateAsync(ITableEntity entity)
|
|||
|
|
{
|
|||
|
|
await _eventRepository.CreateAsync(entity);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public async Task CreateManyAsync(IList<ITableEntity> entities)
|
|||
|
|
{
|
|||
|
|
await _eventRepository.CreateManyAsync(entities);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|