Files
Antifraude.Net/Antifraude.Net/ApiOPE/Security/OpeAuthenticatedAttribute.cs

16 lines
402 B
C#

namespace ApiOPE.Security;
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class OpeAuthenticatedAttribute : Attribute
{
public OpeAuthenticatedAttribute(string resource, bool versionOptional = false)
{
Resource = resource;
VersionOptional = versionOptional;
}
public string Resource { get; }
public bool VersionOptional { get; }
}