Exemple #1
0
 /// <summary>
 /// 接收消息。
 /// </summary>
 /// <param name="context">上下文。</param>
 public virtual void MessageReceived(MessageReceivedContext context) => OnMessageReceived?.Invoke(context);
Exemple #2
0
 /// <summary>
 /// 构造函数。
 /// </summary>
 /// <param name="context">上下文。</param>
 public TokenValidateContext(MessageReceivedContext context) : base(context.Context) => Token = context.Token;