ClientAttribute.cs 601 Bytes
using NCC.Dependency;
using System;

namespace NCC.RemoteRequest
{
    /// <summary>
    /// 配置请求客户端
    /// </summary>
    [SuppressSniffer, AttributeUsage(AttributeTargets.Interface | AttributeTargets.Method)]
    public class ClientAttribute : Attribute
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="name"></param>
        public ClientAttribute(string name)
        {
            Name = name;
        }

        /// <summary>
        /// 客户端名称
        /// </summary>
        public string Name { get; set; }
    }
}