Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
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
潘栩锋
Thick-Common
Commits
3b0ebc03
Commit
3b0ebc03
authored
Nov 13, 2020
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 SyncProp 模块,客户端没有限制 property 推送, 导致服务器 收到 IsConnected 设置请求。出错了。。。
parent
735de845
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
SyncPropServiceClient.cs
...JComponents/OBJComponents/Client/SyncPropServiceClient.cs
+18
-4
No files found.
Project.FLY.OBJComponents/OBJComponents/Client/SyncPropServiceClient.cs
View file @
3b0ebc03
...
...
@@ -81,13 +81,27 @@ namespace FLY.OBJComponents.Client
if
(
sender
is
IPropertyOpt
)
{
var
opt
=
(
IPropertyOpt
)
sender
;
string
[]
nosync
=
opt
.
GetNoSyncPropNames
();
if
(
nosync
!=
null
&&
nosync
.
Count
()!=
0
)
{
if
(
nosync
.
Contains
(
e
.
PropertyName
))
{
//这个不需要同步
string
[]
sync
=
opt
.
GetSyncPropNames
();
if
(
sync
!=
null
&&
sync
.
Count
()
!=
0
)
{
if
(!
sync
.
Contains
(
e
.
PropertyName
))
{
//没有包含,不需要同步
return
;
}
}
else
{
string
[]
nosync
=
opt
.
GetNoSyncPropNames
();
if
(
nosync
!=
null
&&
nosync
.
Count
()
!=
0
)
{
if
(
nosync
.
Contains
(
e
.
PropertyName
))
{
//这个不需要同步
return
;
}
}
}
}
string
objname
=
(
from
kv
in
ObjNames
where
kv
.
Value
==
sender
select
kv
.
Key
).
First
();
...
...
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