[feat]增加WinForm客户端例程,主要为了测试同步调用异步方法等场景
大石头 authored at 2024-11-23 22:58:12
576.00 B
NewLife.Remoting
namespace NewLife.Remoting.Extensions.Models;

/// <summary>令牌设置</summary>
public interface ITokenSetting
{
    /// <summary>令牌密钥。用于生成JWT令牌的算法和密钥,如HS256:ABCD1234</summary>
    String TokenSecret { get; set; }

    /// <summary>令牌有效期。默认2*3600秒</summary>
    Int32 TokenExpire { get; set; }

    /// <summary>会话超时。默认600秒</summary>
    Int32 SessionTimeout { get; set; }

    /// <summary>自动注册。允许客户端自动注册,默认true</summary>
    Boolean AutoRegister { get; set; }
}