using System;

namespace ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Host.Backend.MxAccess;

/// <summary>
///     Fired by <see cref="MxAccessClient.SubscriptionReplayFailed"/> when a previously-active
///     subscription fails to be restored after a reconnect. The backend should treat the tag as
///     unhealthy until the next successful resubscribe.
/// </summary>
public sealed class SubscriptionReplayFailedEventArgs : EventArgs
{
    public SubscriptionReplayFailedEventArgs(string tagReference, Exception exception)
    {
        TagReference = tagReference;
        Exception = exception;
    }

    public string TagReference { get; }
    public Exception Exception { get; }
}
