提交 edabb1c6 编写于 作者: cdy816's avatar cdy816

Spider 驱动Bug 修改

上级 d4331b76
......@@ -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...
......
......@@ -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);
......
......@@ -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++)
{
......
......@@ -2,7 +2,7 @@
"profiles": {
"DBInRun": {
"commandName": "Executable",
"executablePath": "C:\\Users\\chongdaoyang\\source\\repos\\mars\\Output\\DBInRun.exe"
"executablePath": "C:\\Users\\cdy81\\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.
先完成此消息的编辑!
想要评论请 注册