Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Framework
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.Framework
Commits
fd6a7bce
Commit
fd6a7bce
authored
Dec 09, 2022
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加状态改变事件参数
parent
1c626070
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
VIZ.Framework.Connection/Event/ConnectionStateChangedEventArgs.cs
+40
-0
VIZ.Framework.Connection/VIZ.Framework.Connection.csproj
+1
-0
No files found.
VIZ.Framework.Connection/Event/ConnectionStateChangedEventArgs.cs
0 → 100644
View file @
fd6a7bce
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
VIZ.Framework.Connection
{
/// <summary>
/// 连接状态改变事件参数
/// </summary>
public
class
ConnectionStateChangedEventArgs
:
EventArgs
{
/// <summary>
/// 连接状态改变事件参数
/// </summary>
/// <param name="source">源</param>
/// <param name="isConnected">是否连接</param>
public
ConnectionStateChangedEventArgs
(
object
source
,
bool
isConnected
)
{
this
.
Source
=
source
;
this
.
IsConnected
=
isConnected
;
}
/// <summary>
/// 触发源
/// </summary>
public
object
Source
{
get
;
private
set
;
}
/// <summary>
/// 是否保持连接
/// </summary>
public
bool
IsConnected
{
get
;
private
set
;
}
/// <summary>
/// 异常信息
/// </summary>
public
Exception
Exception
{
get
;
set
;
}
}
}
VIZ.Framework.Connection/VIZ.Framework.Connection.csproj
View file @
fd6a7bce
...
...
@@ -75,6 +75,7 @@
<Compile Include="Core\ConnPackageInfo.cs" />
<Compile Include="Core\ConnPackageProviderAttribute.cs" />
<Compile Include="Core\ConnSendMessage.cs" />
<Compile Include="Event\ConnectionStateChangedEventArgs.cs" />
<Compile Include="Listener\TCP\TcpConnectionListener.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Protocol\SerialPort\SerialPortEndpointManagerExpand.cs" />
...
...
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