You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
609 B
23 lines
609 B
using System;
|
|
|
|
namespace Kean.Infrastructure.SignalR
|
|
{
|
|
/// <summary>
|
|
/// 指示 Hub 的路由模板
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public class RouteAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// 初始化 Kean.Infrastructure.Signalr.RouteAttribute 类的新实例
|
|
/// </summary>
|
|
/// <param name="pattern">路由模板</param>
|
|
public RouteAttribute(string pattern) =>
|
|
Pattern = pattern;
|
|
|
|
/// <summary>
|
|
/// 路由模板
|
|
/// </summary>
|
|
public string Pattern { get; set; }
|
|
}
|
|
}
|