Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WSCF
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
WSCF
Commits
dd2729a2
Commit
dd2729a2
authored
Nov 13, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 WebSocketBehavior自带ID, 示例WSCF.RevCtrl.Test.Server 不需要自己创建GUID
parent
fa4a5134
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Chat.cs
RevCtrl.Test/WSCF.RevCtrl.Test.Server/Chat.cs
+4
-6
No files found.
RevCtrl.Test/WSCF.RevCtrl.Test.Server/Chat.cs
View file @
dd2729a2
...
...
@@ -64,7 +64,7 @@ namespace WSCF.RevCtrl.Test.Server
throw
new
Exception
(
"有人在私聊,居然之前没有记录"
);
}
var
customerContext_target
=
customerContexts
.
Find
(
c
=>
c
.
guid
==
targetGuid
);
var
customerContext_target
=
customerContexts
.
Find
(
c
=>
c
.
revCtrl_Proxy
.
ID
==
targetGuid
);
if
(
customerContext_target
==
null
)
{
//没有这个目标
...
...
@@ -73,7 +73,7 @@ namespace WSCF.RevCtrl.Test.Server
}
customerContext_target
.
customer
.
SendMsgToPrivateChat
(
customerContext
.
guid
,
customerContext
.
revCtrl_Proxy
.
ID
,
customerContext
.
customer
.
Name
,
DateTime
.
Now
,
msg
);
...
...
@@ -108,8 +108,7 @@ namespace WSCF.RevCtrl.Test.Server
customerContext
=
new
CustomerContext
()
{
revCtrl_Proxy
=
proxy
,
customer
=
customer
,
guid
=
Guid
.
NewGuid
().
ToString
()
customer
=
customer
};
customerContexts
.
Add
(
customerContext
);
...
...
@@ -132,7 +131,7 @@ namespace WSCF.RevCtrl.Test.Server
{
return
new
CustomerInfo
()
{
Guid
=
cc
.
guid
,
Guid
=
cc
.
revCtrl_Proxy
.
ID
,
Name
=
cc
.
customer
.
Name
};
}).
ToArray
();
...
...
@@ -169,6 +168,5 @@ namespace WSCF.RevCtrl.Test.Server
{
public
RevCtrl_Proxy
revCtrl_Proxy
;
public
ICustomerService
customer
;
public
string
guid
;
}
}
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