// // Copyright (c) PlaceholderCompany. All rights reserved. // namespace Jellyfin.Server.Implementations.Clustering { using System; /// /// Event arguments for when the primary instance changes. /// public class PrimaryInstanceChangedEventArgs : EventArgs { /// /// Initializes a new instance of the class. /// /// The previous primary instance ID. /// The new primary instance ID. /// Whether the current instance is now primary. public PrimaryInstanceChangedEventArgs(Guid? previousPrimaryId, Guid? newPrimaryId, bool isCurrentInstance) { PreviousPrimaryId = previousPrimaryId; NewPrimaryId = newPrimaryId; IsCurrentInstance = isCurrentInstance; } /// /// Gets the previous primary instance ID. /// public Guid? PreviousPrimaryId { get; } /// /// Gets the new primary instance ID. /// public Guid? NewPrimaryId { get; } /// /// Gets a value indicating whether the current instance is now the primary. /// public bool IsCurrentInstance { get; } } }