mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
1. 修改了 WebSocketHandleContext 的 Tag有关的Set/Get方法
This commit is contained in:
@@ -78,7 +78,7 @@ namespace Serein.Proto.WebSocket
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="tag"></param>
|
||||
private void SetTag<T>(T tag)
|
||||
public void SetTag<T>(T tag)
|
||||
{
|
||||
lock (_wsTagLockObj)
|
||||
{
|
||||
@@ -90,7 +90,7 @@ namespace Serein.Proto.WebSocket
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="tag"></param>
|
||||
private object? GetTag()
|
||||
public object? GetTag()
|
||||
{
|
||||
TryGetTag(out object? tag);
|
||||
return tag;
|
||||
@@ -100,7 +100,7 @@ namespace Serein.Proto.WebSocket
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="tag"></param>
|
||||
private T? GetTag<T>()
|
||||
public T? GetTag<T>()
|
||||
{
|
||||
TryGetTag(out T? tag);
|
||||
return tag;
|
||||
@@ -110,7 +110,7 @@ namespace Serein.Proto.WebSocket
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="tag"></param>
|
||||
private bool TryGetTag<T>([NotNullWhen(true)] out T? tag)
|
||||
public bool TryGetTag<T>([NotNullWhen(true)] out T? tag)
|
||||
{
|
||||
lock (_wsTagLockObj)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user