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
81c4c6f5
Commit
81c4c6f5
authored
Oct 21, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加描述
parent
c021c2f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
Reflect_Proxy.cs
WSCF/Reflect_Proxy.cs
+17
-0
No files found.
WSCF/Reflect_Proxy.cs
View file @
81c4c6f5
...
...
@@ -11,6 +11,23 @@ using WebSocketSharp.Server;
namespace
WSCF
{
/// <summary>
/// obj 服务代理;
/// 1.如果代理的对象为 INotifyPropertyChanged, 对象内的 property 改变,能推送给客户端( [JsonIgnore] 除外);
/// 2.代理的对象不为INotifyPropertyChanged, 但 对象内的 property
/// a.是 [PropertyPush],
/// b.且是 INotifyPropertyChanged,
/// c.且 只能是get,不能有set,
/// 那这个 property 内的 子property 改变,也会推送给 客户端 且 子property 是 [PropertyPush],会继续向下全部注册 PropertyChanged,
/// 也推送给 客户端;
/// 3. 客户端 可以通过 Call(.....) 调用 服务 的function, function返回的内容,需要通过[Call(...)] 定义; 且function 必须是
/// void function(object param1, object param2,object paramN, AsyncCBHandler asyncDelegate, object asyncContext);
/// 必须有参数 AsyncCBHandler asyncDelegate, object asyncContext, 名字不能改。 前面的 param1~paramN, 多少个都行
/// 4. 服务中的event, 通过 [Push(...)] 可以推送给客户端, 但event 只能是 EventHandler
/// [Push(typeof(BulkDBTempFrameChangedEventArgs))]
/// public event EventHandler TempFrameChanged;
///
/// </summary>
public
class
Reflect_Proxy
:
WebSocketBehavior
,
IDisposable
{
static
NLog
.
Logger
logger
=
NLog
.
LogManager
.
GetCurrentClassLogger
();
...
...
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