mirror of
https://github.com/bitwarden/server
synced 2025-12-22 03:03:33 +00:00
17 lines
505 B
C#
17 lines
505 B
C#
using Azure.Storage.Queues;
|
|
using Bit.Core.Models.Data;
|
|
using Bit.Core.Settings;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Core.Services;
|
|
|
|
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 });
|
|
}
|