XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEExtension.NetCore.ServerInteractive

[DLL] Server interaction extension, including user identity verification and querying in conjunction with AutoConfig

公开
关注 0 Fork 0 Star 0
UTF-8
namespace XFEExtension.NetCore.ServerInteractive.Attributes;

/// <summary>
/// 次级入口点特性,用于标记IServerCoreStandardService中的处理方法
/// </summary>
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public class EntryPointAttribute : Attribute
{
    /// <summary>
    /// 次级入口点路径
    /// </summary>
    public string Path { get; }

    /// <summary>
    /// 创建次级入口点特性
    /// </summary>
    /// <param name="path">入口点路径(例如:user/login)</param>
    public EntryPointAttribute(string path)
    {
        Path = path;
    }
}