using System; using System.Collections.Generic; namespace MxGateway.Worker.MxAccess; public sealed class MxAccessShutdownResult { /// Initializes a new instance of the class. /// List of failures encountered during graceful shutdown. public MxAccessShutdownResult(IReadOnlyList failures) { Failures = failures ?? throw new ArgumentNullException(nameof(failures)); } /// Gets the list of shutdown failures. public IReadOnlyList Failures { get; } /// Gets a value indicating whether the shutdown succeeded with no failures. public bool Succeeded => Failures.Count == 0; }