2017-12-01 09:22:04 -05:00
|
|
|
|
using System;
|
2019-07-25 15:34:14 -04:00
|
|
|
|
using System.Collections.Generic;
|
2017-12-01 09:22:04 -05:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Bit.Core.Enums;
|
2017-12-01 14:06:16 -05:00
|
|
|
|
using Bit.Core.Models.Table;
|
2017-12-01 09:22:04 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Services
|
|
|
|
|
|
{
|
|
|
|
|
|
public class NoopEventService : IEventService
|
|
|
|
|
|
{
|
2019-07-09 11:44:09 -04:00
|
|
|
|
public Task LogCipherEventAsync(Cipher cipher, EventType type, DateTime? date = null)
|
2017-12-01 09:22:04 -05:00
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2017-12-01 12:14:46 -05:00
|
|
|
|
|
2019-07-25 15:34:14 -04:00
|
|
|
|
public Task LogCipherEventsAsync(IEnumerable<Tuple<Cipher, EventType, DateTime?>> events)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2019-07-09 11:44:09 -04:00
|
|
|
|
public Task LogCollectionEventAsync(Collection collection, EventType type, DateTime? date = null)
|
2017-12-01 16:00:30 -05:00
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2020-01-15 09:43:49 -05:00
|
|
|
|
public Task LogPolicyEventAsync(Policy policy, EventType type, DateTime? date = null)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2019-07-09 11:44:09 -04:00
|
|
|
|
public Task LogGroupEventAsync(Group group, EventType type, DateTime? date = null)
|
2017-12-01 16:00:30 -05:00
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2019-07-09 11:44:09 -04:00
|
|
|
|
public Task LogOrganizationEventAsync(Organization organization, EventType type, DateTime? date = null)
|
2017-12-01 16:00:30 -05:00
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2019-07-09 11:44:09 -04:00
|
|
|
|
public Task LogOrganizationUserEventAsync(OrganizationUser organizationUser, EventType type,
|
|
|
|
|
|
DateTime? date = null)
|
2017-12-01 16:00:30 -05:00
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-05-17 09:43:02 -05:00
|
|
|
|
public Task LogOrganizationUserEventsAsync(IEnumerable<(OrganizationUser, EventType, DateTime?)> events)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2019-07-09 11:44:09 -04:00
|
|
|
|
public Task LogUserEventAsync(Guid userId, EventType type, DateTime? date = null)
|
2017-12-01 12:14:46 -05:00
|
|
|
|
{
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
}
|
2017-12-01 09:22:04 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|