using NCC.Dependency; using System; namespace NCC.InstantMessaging { /// /// 即时通信集线器配置特性 /// [SuppressSniffer, AttributeUsage(AttributeTargets.Class)] public sealed class MapHubAttribute : Attribute { /// /// 构造函数 /// /// public MapHubAttribute(string pattern) { Pattern = pattern; } /// /// 配置终点路由地址 /// public string Pattern { get; set; } } }