Skip to content

Commit e14a1ed

Browse files
committed
fixed no events bug in component interface defined.
1 parent c377138 commit e14a1ed

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

build/version.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup Condition="'$(AssemblyName)'=='GodSharp.Socket'">
33
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
4-
<Version>2019.1.0.0-preview4</Version>
5-
<FileVersion>2019.1.0.0-preview4</FileVersion>
4+
<Version>2019.1.0.0-preview5</Version>
5+
<FileVersion>2019.1.0.0-preview5</FileVersion>
66
</PropertyGroup>
77
</Project>

samples/GodSharp.Socket.TcpServerSample/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ static void Main(string[] args)
1010
{
1111
Console.WriteLine("Hello GodSharp.Socket.TcpServerSample!");
1212

13-
TcpServer server = new TcpServer()
13+
ITcpServer server = new TcpServer()
1414
{
1515
OnConnected = (c) =>
1616
{

src/GodSharp.Socket/Abstractions/Components/ITcpClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace GodSharp.Sockets
55
{
6-
public interface ITcpClient : INetBase<ITcpConnection>, IDisposable
6+
public interface ITcpClient : INetBase<ITcpConnection>, IEvent<ITcpConnection, NetClientEventArgs<ITcpConnection>>, IDisposable
77
{
88
ITcpConnection Connection { get; }
99
}

src/GodSharp.Socket/Abstractions/Components/ITcpServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace GodSharp.Sockets
77
{
8-
public interface ITcpServer : INetBase<ITcpConnection>, IDisposable
8+
public interface ITcpServer : INetBase<ITcpConnection>, IEvent<ITcpConnection, NetServerEventArgs>, IDisposable
99
{
1010
Socket Instance { get; }
1111

src/GodSharp.Socket/Abstractions/Components/IUdpClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace GodSharp.Sockets
55
{
6-
public interface IUdpClient : INetBase<IUdpConnection>, IDisposable
6+
public interface IUdpClient : INetBase<IUdpConnection>, IEvent<IUdpConnection, NetClientEventArgs<IUdpConnection>>, IDisposable
77
{
88
IUdpConnection Connection { get; }
99
}

0 commit comments

Comments
 (0)