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.SourceGenerator.Models;

/// <summary>
/// 方法候选信息,包含验证所需的所有数据
/// </summary>
public class MethodCandidate(string namespaceName, string className, string methodName, string path, bool isAsync, bool isContainingTypePartial, int parameterCount, bool hasValidReturnType, string returnTypeName, LocationInfo methodLocation, LocationInfo classLocation, string typeParameters, string typeConstraints)
{
    public string Namespace { get; } = namespaceName;
    public string ClassName { get; } = className;
    public string MethodName { get; } = methodName;
    public string Path { get; } = path;
    public bool IsAsync { get; } = isAsync;
    public bool IsContainingTypePartial { get; } = isContainingTypePartial;
    public int ParameterCount { get; } = parameterCount;
    public bool HasValidReturnType { get; } = hasValidReturnType;
    public string ReturnTypeName { get; } = returnTypeName;
    public LocationInfo MethodLocation { get; } = methodLocation;
    public LocationInfo ClassLocation { get; } = classLocation;
    public string TypeParameters { get; } = typeParameters;
    public string TypeConstraints { get; } = typeConstraints;
}