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

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

18 lines
539 B
C#
Raw Normal View History

using Azure.Storage.Queues;
using Bit.Core.Models.Data;
using Bit.Core.Settings;
using Bit.Core.Utilities;
2017-12-04 09:58:07 -05:00
namespace Bit.Core.Services
2017-12-04 09:58:07 -05:00
{
public class AzureQueueEventWriteService : AzureQueueService<IEvent>, IEventWriteService
{
public AzureQueueEventWriteService(GlobalSettings globalSettings) : base(
new QueueClient(globalSettings.Events.ConnectionString, "event"),
JsonHelpers.IgnoreWritingNull)
{ }
public Task CreateAsync(IEvent e) => CreateManyAsync(new[] { e });
}
2017-12-04 09:58:07 -05:00
}