Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuovi committed Sep 7, 2023
1 parent 2605e8f commit cf71f94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Net/SocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,10 @@ private async Task<int> NetStreamSendAsync(byte[] buffers, OpCode opCode = OpCod
public void MessageByteEventHandler(byte[] message) => OnMessageByte?.Invoke(this, message, EventArgs.Empty);
///<inheritdoc/>
public void AuthenticationEventHandler(string message) => OnAuthentication?.Invoke(this, message, EventArgs.Empty);
///<inheritdoc/>
public override void StartEventHandler() => OnStart?.Invoke(this, EventArgs.Empty);
///<inheritdoc/>
public override void StopEventHandler() => OnStop?.Invoke(this, EventArgs.Empty);
#endregion

#region 设置Socket
Expand Down
4 changes: 2 additions & 2 deletions Net/SocketServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,9 @@ private void CreateNewSocketIfNeeded()

#region 调用当前事件
///<inheritdoc/>
public void StartEventHandler() => OnStart?.Invoke(this, EventArgs.Empty);
public override void StartEventHandler() => OnStart?.Invoke(this, EventArgs.Empty);
///<inheritdoc/>
public void StopEventHandler() => OnStop?.Invoke(this, EventArgs.Empty);
public override void StopEventHandler() => OnStop?.Invoke(this, EventArgs.Empty);
///<inheritdoc/>
public void NewConnectionEventHandler(ISocketClient client) => OnNewConnection?.Invoke(client, EventArgs.Empty);
///<inheritdoc/>
Expand Down

0 comments on commit cf71f94

Please sign in to comment.