Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
cdy816
Mars
提交
edabb1c6
Mars
项目概览
cdy816
/
Mars
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Mars
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
edabb1c6
编写于
9月 08, 2020
作者:
cdy816
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Spider 驱动Bug 修改
上级
d4331b76
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
48 addition
and
6 deletion
+48
-6
Common/Cdy.Tag.Network/SocketClient.cs
Common/Cdy.Tag.Network/SocketClient.cs
+10
-3
Driver/SpiderDriver.ClientApi/DriverProxy.cs
Driver/SpiderDriver.ClientApi/DriverProxy.cs
+36
-1
Driver/SpiderDriver/Driver.cs
Driver/SpiderDriver/Driver.cs
+1
-1
RunTime/DBInRun/Properties/launchSettings.json
RunTime/DBInRun/Properties/launchSettings.json
+1
-1
未找到文件。
Common/Cdy.Tag.Network/SocketClient.cs
浏览文件 @
edabb1c6
...
...
@@ -210,9 +210,16 @@ namespace Cdy.Tag
/// </summary>
public
async
void
Close
()
{
if
(
clientChannel
!=
null
)
await
clientChannel
.
CloseAsync
();
await
group
.
ShutdownGracefullyAsync
(
TimeSpan
.
FromMilliseconds
(
100
),
TimeSpan
.
FromSeconds
(
1
));
try
{
if
(
clientChannel
!=
null
)
await
clientChannel
.
CloseAsync
();
await
group
.
ShutdownGracefullyAsync
(
TimeSpan
.
FromMilliseconds
(
100
),
TimeSpan
.
FromSeconds
(
1
));
}
catch
{
}
}
#
endregion
...
Methods
...
...
...
Driver/SpiderDriver.ClientApi/DriverProxy.cs
浏览文件 @
edabb1c6
...
...
@@ -39,17 +39,46 @@ namespace SpiderDriver.ClientApi
#
region
...
Constructor
...
/// <summary>
///
/// </summary>
public
DriverProxy
()
{
this
.
PropertyChanged
+=
DriverProxy_PropertyChanged
;
}
#
endregion
...
Constructor
...
#
region
...
Properties
...
/// <summary>
///
/// </summary>
public
bool
IsLogin
{
get
{
return
mLoginId
>
0
;
}
}
/// <summary>
///
/// </summary>
public
ProcessDataPushDelegate
ValueChanged
{
get
;
set
;
}
#
endregion
...
Properties
...
#
region
...
Methods
...
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private
void
DriverProxy_PropertyChanged
(
object
sender
,
System
.
ComponentModel
.
PropertyChangedEventArgs
e
)
{
if
(
e
.
PropertyName
==
"IsConnected"
)
{
mLoginId
=
-
1
;
}
}
/// <summary>
///
/// </summary>
...
...
@@ -298,7 +327,13 @@ namespace SpiderDriver.ClientApi
}
}
/// <summary>
///
/// </summary>
/// <param name="type"></param>
/// <param name="value"></param>
/// <param name="quality"></param>
/// <param name="re"></param>
private
void
SetTagValueToBuffer
(
TagType
type
,
object
value
,
byte
quality
,
IByteBuffer
re
)
{
re
.
WriteByte
((
byte
)
type
);
...
...
Driver/SpiderDriver/Driver.cs
浏览文件 @
edabb1c6
...
...
@@ -62,7 +62,7 @@ namespace SpiderDriver
Load
();
mService
=
new
List
<
DataService
>();
RealDataServerProcess
.
AllowTagIds
=
new
HashSet
<
int
>(
tagQuery
.
GetTagIdsByLinkAddress
(
this
.
Name
));
RealDataServerProcess
.
AllowTagIds
=
new
HashSet
<
int
>(
tagQuery
.
GetTagIdsByLinkAddress
(
this
.
Name
+
":"
));
for
(
int
i
=
mPort
;
i
<=
mEndPort
;
i
++)
{
...
...
RunTime/DBInRun/Properties/launchSettings.json
浏览文件 @
edabb1c6
...
...
@@ -2,7 +2,7 @@
"profiles"
:
{
"DBInRun"
:
{
"commandName"
:
"Executable"
,
"executablePath"
:
"C:
\\
Users
\\
c
hongdaoyang
\\
source
\\
repos
\\
mars
\\
Output
\\
DBInRun.exe"
"executablePath"
:
"C:
\\
Users
\\
c
dy81
\\
source
\\
repos
\\
mars
\\
Output
\\
DBInRun.exe"
}
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录