onebeyond/onebeyond-studio-core

View on GitHub
src/OneBeyond.Studio.Infrastructure.Azure/MessageQueues/Options/AzureLargeMessageQueueOptions.cs

Summary

Maintainability
A
0 mins
Test Coverage
using System;
using OneBeyond.Studio.Crosscuts.Strings;

namespace OneBeyond.Studio.Infrastructure.Azure.MessageQueues.Options;

public sealed record AzureLargeMessageQueueOptions : AzureMessageQueueOptions
{
    public string? ContainerName { get; private set; }

    public override void EnsureIsValid()
    {
        base.EnsureIsValid();

        if (ContainerName.IsNullOrWhiteSpace())
        {
            throw new ArgumentNullException(nameof(ContainerName), "Azure message queue container name is null.");
        }
    }
}