namespace Jellyfin.Server.Implementations;
///
/// Defines the key of the database provider.
///
[System.AttributeUsage(System.AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
public sealed class JellyfinDatabaseProviderKeyAttribute : System.Attribute
{
// See the attribute guidelines at
// http://go.microsoft.com/fwlink/?LinkId=85236
private readonly string _databaseProviderKey;
///
/// Initializes a new instance of the class.
///
/// The key on which to identify the annotated provider.
public JellyfinDatabaseProviderKeyAttribute(string databaseProviderKey)
{
this._databaseProviderKey = databaseProviderKey;
}
///
/// Gets the key on which to identify the annotated provider.
///
public string DatabaseProviderKey
{
get { return _databaseProviderKey; }
}
}