Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
525d7c3e
Commit
525d7c3e
authored
Nov 30, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实时通讯
parent
8933af96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
performance/Performance.Services/Hubs/AllotLogHub.cs
+3
-9
No files found.
performance/Performance.Services/Hubs/AllotLogHub.cs
View file @
525d7c3e
...
@@ -53,7 +53,7 @@ public override Task OnDisconnectedAsync(Exception exception)
...
@@ -53,7 +53,7 @@ public override Task OnDisconnectedAsync(Exception exception)
return
base
.
OnDisconnectedAsync
(
exception
);
return
base
.
OnDisconnectedAsync
(
exception
);
}
}
public
async
Task
AddGroup
(
string
token
,
string
groupName
)
public
async
Task
AddGroup
(
string
token
,
int
groupName
)
{
{
var
connectionId
=
Context
.
ConnectionId
;
var
connectionId
=
Context
.
ConnectionId
;
string
key
=
$"AllotLogGroup_
{
connectionId
}
"
;
string
key
=
$"AllotLogGroup_
{
connectionId
}
"
;
...
@@ -66,13 +66,7 @@ public override Task OnDisconnectedAsync(Exception exception)
...
@@ -66,13 +66,7 @@ public override Task OnDisconnectedAsync(Exception exception)
logger
.
LogDebug
(
$"日志推送 添加用户组
{
connectionId
}
-
{
groupName
}
"
);
logger
.
LogDebug
(
$"日志推送 添加用户组
{
connectionId
}
-
{
groupName
}
"
);
//2 将用户插入分组
//2 将用户插入分组
await
Groups
.
AddToGroupAsync
(
connectionId
,
groupName
);
await
Groups
.
AddToGroupAsync
(
connectionId
,
groupName
.
ToString
());
}
}
public
Task
SendMessage
(
string
user
,
string
message
)
{
logger
.
LogDebug
(
$"日志推送 SendMessage *****************************************************************************"
);
return
Clients
.
All
.
SendAsync
(
"ReceiveMessage"
,
user
,
message
);
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment