namespace JsonRpcEndpointSample.Rpc.Abstractions;

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class RpcMethodAttribute : Attribute
{
    public RpcMethodAttribute(string method)
    {
        Method = method;
    }

    public string Method
    {
        get;
    }

    public string Description
    {
        get; set;
    } = string.Empty;

    public bool IsReadOnly
    {
        get; set;
    }
}
