blob: b3ab3d09446edc5e8a1a5627ea8f863a37cdf852 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
namespace Jellyfin.Server.Implementations;
/// <summary>
/// Defines the key of the database provider.
/// </summary>
[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;
/// <summary>
/// Initializes a new instance of the <see cref="JellyfinDatabaseProviderKeyAttribute"/> class.
/// </summary>
/// <param name="databaseProviderKey">The key on which to identify the annotated provider.</param>
public JellyfinDatabaseProviderKeyAttribute(string databaseProviderKey)
{
this._databaseProviderKey = databaseProviderKey;
}
/// <summary>
/// Gets the key on which to identify the annotated provider.
/// </summary>
public string DatabaseProviderKey
{
get { return _databaseProviderKey; }
}
}
|