-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
435 additions
and
394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using NewLife.Data; | ||
|
||
namespace NewLife.Remoting; | ||
|
||
/// <summary>Api请求/响应</summary> | ||
public class ApiMessage | ||
{ | ||
/// <summary>动作</summary> | ||
public String Action { get; set; } | ||
|
||
/// <summary>响应码。请求没有该字段</summary> | ||
public Int32 Code { get; set; } | ||
|
||
/// <summary>数据。请求参数或响应内容</summary> | ||
public Packet Data { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
| ||
using NewLife.Messaging; | ||
using NewLife.Net; | ||
|
||
namespace NewLife.Remoting; | ||
|
||
/// <summary>收到Api请求或响应的事件参数</summary> | ||
public class ApiReceivedEventArgs : EventArgs | ||
{ | ||
/// <summary>会话</summary> | ||
public IApiSession Session { get; set; } | ||
|
||
/// <summary>远程连接</summary> | ||
public ISocketRemote Remote { get; set; } | ||
|
||
/// <summary>消息</summary> | ||
public IMessage Message { get; set; } | ||
|
||
/// <summary>请求响应报文</summary> | ||
public ApiMessage ApiMessage { get; set; } | ||
|
||
/// <summary>用户状态对象</summary> | ||
public Object UserState { get; set; } | ||
} |
Oops, something went wrong.