mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-07-30 17:30:40 +00:00
17 lines
458 B
C#
17 lines
458 B
C#
using Esiur.Security.Permissions;
|
|
using System;
|
|
|
|
namespace Esiur.Resource;
|
|
|
|
/// <summary>
|
|
/// Associates a registered permissions-manager implementation with a resource type.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
|
|
public sealed class PermissionsManagerAttribute<T> : ResourceManagerAttribute
|
|
where T : IPermissionsManager
|
|
{
|
|
public PermissionsManagerAttribute() : base(typeof(T))
|
|
{
|
|
}
|
|
}
|