20 lines
439 B
C#
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;
|
|
}
|
|
}
|
|
}
|