Files
BeWoPlaner/Service/Attributes/RequireApiKeyAttribute.cs
2025-06-03 15:46:41 +02:00

20 lines
439 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BeWo.Service.Attributes
{
[AttributeUsage(AttributeTargets.Method, Inherited = true)]
public class RequireApiKeyAttribute : Attribute
{
public WebSecretConfigSetting ApiKeyName { get; set; }
public RequireApiKeyAttribute(WebSecretConfigSetting api_key_name)
{
ApiKeyName = api_key_name;
}
}
}