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
using XFEExtension.NetCore.AutoConfig;
using XFEExtension.NetCore.ServerInteractive.Models;

namespace XFEExtension.NetCore.ServerInteractive.Profiles;

public partial class ServerBaseProfile : XFEProfile
{
    /// <summary>
    /// 服务器入口点
    /// </summary>
    [ProfileProperty]
    private string _entryPoint = "api";
    /// <summary>
    /// 封禁的IP地址列表
    /// </summary>
    [ProfileProperty]
    [ProfilePropertyAddGet("Current._bannedIPAddressList.CurrentProfile = Current")]
    [ProfilePropertyAddGet("return Current._bannedIPAddressList")]
    private ProfileList<IPAddressInfo> _bannedIPAddressList = [];
}