Skip to content

Commit

Permalink
version 2.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hiram3512 committed Aug 27, 2019
1 parent 9e6b922 commit 5ae60b5
Show file tree
Hide file tree
Showing 158 changed files with 91 additions and 97 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vs
Binary file removed HiSocket/HiFramework.Assert.dll
Binary file not shown.
Binary file removed HiSocket/HiFramework.Core.dll
Binary file not shown.
Binary file modified HiSocket/HiFramework.dll
Binary file not shown.
Binary file modified HiSocket/HiSocket.Message.dll
Binary file not shown.
Binary file modified HiSocket/HiSocket.Message.pdb
Binary file not shown.
Binary file modified HiSocket/HiSocket.dll
Binary file not shown.
Binary file modified HiSocket/HiSocket.pdb
Binary file not shown.
Binary file renamed HiSocket_2.9.2.zip → HiSocket_2.9.3.zip
Binary file not shown.
10 changes: 2 additions & 8 deletions src/HiSocket.Example/HiSocket.Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,8 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="HiFramework, Version=1.0.7.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HiFramework.1.0.7\lib\net35\HiFramework.dll</HintPath>
</Reference>
<Reference Include="HiFramework.Assert, Version=1.0.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HiFramework.Assert.1.0.2\lib\net35\HiFramework.Assert.dll</HintPath>
</Reference>
<Reference Include="HiFramework.Core, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HiFramework.Core.1.0.0\lib\net35\HiFramework.Core.dll</HintPath>
<Reference Include="HiFramework, Version=1.0.8.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HiFramework.1.0.8\lib\net35\HiFramework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
Binary file not shown.
Binary file removed src/HiSocket.Example/bin/Debug/HiFramework.Core.dll
Binary file not shown.
Binary file modified src/HiSocket.Example/bin/Debug/HiFramework.dll
Binary file not shown.
Binary file modified src/HiSocket.Example/bin/Debug/HiSocket.Example.exe
Binary file not shown.
Binary file modified src/HiSocket.Example/bin/Debug/HiSocket.Message.dll
Binary file not shown.
Binary file modified src/HiSocket.Example/bin/Debug/HiSocket.Message.pdb
Binary file not shown.
Binary file modified src/HiSocket.Example/bin/Debug/HiSocket.dll
Binary file not shown.
Binary file modified src/HiSocket.Example/bin/Debug/HiSocket.pdb
Binary file not shown.
Binary file added src/HiSocket.Example/bin/Release/HiFramework.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/HiSocket.Example/bin/Release/HiSocket.dll
Binary file not shown.
Binary file added src/HiSocket.Example/bin/Release/HiSocket.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6512814e59f56da6d6679d13f950f790cc536cdd
5f19412a13e29ce3d2aca7fc8f8aa74845c283a0
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ D:\MyGit\github\HiSocket\src\HiSocket.Example\obj\Debug\HiSocket.Example.csprojA
D:\MyGit\github\HiSocket\src\HiSocket.Example\obj\Debug\HiSocket.Example.csproj.CoreCompileInputs.cache
D:\MyGit\github\HiSocket\src\HiSocket.Example\obj\Debug\HiSocket.Example.exe
D:\MyGit\github\HiSocket\src\HiSocket.Example\obj\Debug\HiSocket.Example.pdb
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Debug\HiFramework.Assert.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Debug\HiFramework.Core.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Debug\HiFramework.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Debug\HiSocket.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Debug\HiSocket.Message.dll
Expand Down
Binary file not shown.
Binary file modified src/HiSocket.Example/obj/Debug/HiSocket.Example.exe
Binary file not shown.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5f19412a13e29ce3d2aca7fc8f8aa74845c283a0
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\HiSocket.Example.exe
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\HiSocket.Example.pdb
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\HiFramework.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\HiSocket.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\HiSocket.Message.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\protobuf-net.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\HiSocket.Message.pdb
D:\MyGit\github\HiSocket\src\HiSocket.Example\bin\Release\HiSocket.pdb
D:\MyGit\github\HiSocket\src\HiSocket.Example\obj\Release\HiSocket.Example.csprojAssemblyReference.cache
D:\MyGit\github\HiSocket\src\HiSocket.Example\obj\Release\HiSocket.Example.csproj.CoreCompileInputs.cache
D:\MyGit\github\HiSocket\src\HiSocket.Example\obj\Release\HiSocket.Example.csproj.CopyComplete
D:\MyGit\github\HiSocket\src\HiSocket.Example\obj\Release\HiSocket.Example.exe
D:\MyGit\github\HiSocket\src\HiSocket.Example\obj\Release\HiSocket.Example.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 1 addition & 3 deletions src/HiSocket.Example/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="HiFramework" version="1.0.7" targetFramework="net35" />
<package id="HiFramework.Assert" version="1.0.2" targetFramework="net35" />
<package id="HiFramework.Core" version="1.0.0" targetFramework="net35" />
<package id="HiFramework" version="1.0.8" targetFramework="net35" />
</packages>
10 changes: 2 additions & 8 deletions src/HiSocket.Example_Unity/HiSocket.Example_Unity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,8 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="HiFramework, Version=1.0.7.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HiFramework.1.0.7\lib\net35\HiFramework.dll</HintPath>
</Reference>
<Reference Include="HiFramework.Assert, Version=1.0.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HiFramework.Assert.1.0.2\lib\net35\HiFramework.Assert.dll</HintPath>
</Reference>
<Reference Include="HiFramework.Core, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HiFramework.Core.1.0.0\lib\net35\HiFramework.Core.dll</HintPath>
<Reference Include="HiFramework, Version=1.0.8.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HiFramework.1.0.8\lib\net35\HiFramework.dll</HintPath>
</Reference>
<Reference Include="HiFramework.Unity">
<HintPath>lib\HiFramework.Unity.dll</HintPath>
Expand Down
4 changes: 2 additions & 2 deletions src/HiSocket.Example_Unity/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Documents: https://github.com/hiramtan/HiSocket
* Author: [email protected]
***************************************************************/
using HiFramework.Core;
using HiFramework;
using HiFramework.Unity;
using HiSocket.Example;
using HiSocket.Tcp;
Expand All @@ -25,7 +25,7 @@ public class Example : MonoBehaviour
// Use this for initialization
void Start()
{
Center.Init();
Center.Init(new UnityBinder());
tick = Center.Get<ITickComponent>();
Connect();
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified src/HiSocket.Example_Unity/bin/Debug/HiFramework.Unity.dll
Binary file not shown.
Binary file modified src/HiSocket.Example_Unity/bin/Debug/HiFramework.dll
Binary file not shown.
Binary file modified src/HiSocket.Example_Unity/bin/Debug/HiSocket.Example.exe
Binary file not shown.
Binary file modified src/HiSocket.Example_Unity/bin/Debug/HiSocket.Example_Unity.exe
Binary file not shown.
Binary file modified src/HiSocket.Example_Unity/bin/Debug/HiSocket.Example_Unity.pdb
Binary file not shown.
Binary file modified src/HiSocket.Example_Unity/bin/Debug/HiSocket.Message.dll
Binary file not shown.
Binary file modified src/HiSocket.Example_Unity/bin/Debug/HiSocket.Message.pdb
Binary file not shown.
Binary file modified src/HiSocket.Example_Unity/bin/Debug/HiSocket.dll
Binary file not shown.
Binary file modified src/HiSocket.Example_Unity/bin/Debug/HiSocket.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified src/HiSocket.Example_Unity/lib/HiFramework.Unity.dll
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4f0e9bdfc0bbc9c69411d59fe82c6b598fb59975
7454c1ec6858c7af89ff38ab11a276d72e55cee2
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Debug\HiSocket.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Debug\HiSocket.Example.exe
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Debug\HiSocket.Message.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Debug\HiFramework.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Debug\HiFramework.Assert.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Debug\protobuf-net.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Debug\HiFramework.Core.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Debug\HiSocket.Example.pdb
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Debug\HiSocket.Message.pdb
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Debug\HiSocket.pdb
Expand Down
Binary file not shown.
Binary file modified src/HiSocket.Example_Unity/obj/Debug/HiSocket.Example_Unity.exe
Binary file not shown.
Binary file modified src/HiSocket.Example_Unity/obj/Debug/HiSocket.Example_Unity.pdb
Binary file not shown.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cf45866d8ffcfbad820f0f104d12f4454c5a3295
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.Example_Unity.exe
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.Example_Unity.pdb
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiFramework.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiFramework.Unity.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.Example.exe
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.Message.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\UnityEngine.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\protobuf-net.dll
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.Example.pdb
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.Message.pdb
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\bin\Release\HiSocket.pdb
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\obj\Release\HiSocket.Example_Unity.csprojAssemblyReference.cache
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\obj\Release\HiSocket.Example_Unity.csproj.CoreCompileInputs.cache
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\obj\Release\HiSocket.Example_Unity.csproj.CopyComplete
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\obj\Release\HiSocket.Example_Unity.exe
D:\MyGit\github\HiSocket\src\HiSocket.Example_Unity\obj\Release\HiSocket.Example_Unity.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 1 addition & 3 deletions src/HiSocket.Example_Unity/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="HiFramework" version="1.0.7" targetFramework="net35" />
<package id="HiFramework.Assert" version="1.0.2" targetFramework="net35" />
<package id="HiFramework.Core" version="1.0.0" targetFramework="net35" />
<package id="HiFramework" version="1.0.8" targetFramework="net35" />
</packages>
8 changes: 4 additions & 4 deletions src/HiSocket.Message/BinaryMsgRegister.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Author: [email protected]
//***************************************************************************

using HiFramework.Assert;
using HiFramework;
using System;
using System.Collections.Generic;
using System.IO;
Expand Down Expand Up @@ -32,7 +32,7 @@ public static void Init()
/// <param name="onMsg"></param>
public static void Regist(int key, Action<BinaryReader> onMsg)
{
AssertThat.IsFalse(_msgs.ContainsKey(key), "Already regist this key:" + key);
Assert.IsFalse(_msgs.ContainsKey(key), "Already regist this key:" + key);
_msgs.Add(key, onMsg);
}

Expand All @@ -42,7 +42,7 @@ public static void Regist(int key, Action<BinaryReader> onMsg)
/// <param name="key"></param>
public static void Unregist(int key)
{
AssertThat.IsTrue(_msgs.ContainsKey(key));
Assert.IsTrue(_msgs.ContainsKey(key));
_msgs.Remove(key);
}

Expand All @@ -53,7 +53,7 @@ public static void Unregist(int key)
/// <param name="bytes"></param>
public static void Dispatch(int key, byte[] bytes)
{
AssertThat.IsTrue(_msgs.ContainsKey(key));
Assert.IsTrue(_msgs.ContainsKey(key));
var ms = new MemoryStream(bytes);
var reader = new BinaryReader(ms);
_msgs[key](reader);
Expand Down
4 changes: 2 additions & 2 deletions src/HiSocket.Message/BinaryRegistHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

using System;
using System.Reflection;
using HiFramework.Assert;
using HiFramework;

namespace HiSocket.Message
{
Expand All @@ -26,7 +26,7 @@ public static void Init()
if (types[i].IsSubclassOf(baseType))
{
var ins = Activator.CreateInstance(types[i]) as BinaryMsgBase;
AssertThat.IsNotNull(ins);
Assert.IsNotNull(ins);
ins.Regist();
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/HiSocket.Message/ChannelManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Author: [email protected]
//***************************************************************************

using HiFramework.Assert;
using HiFramework;
using HiSocket.Tcp;
using System;
using System.Collections.Generic;
Expand All @@ -26,7 +26,7 @@ public static class ChannelManager
/// <param name="tcpConnection"></param>
public static void AddConnection(string name, ITcpConnection tcpConnection)
{
AssertThat.IsFalse(_connections.ContainsKey(name));
Assert.IsFalse(_connections.ContainsKey(name));
_connections.Add(name, tcpConnection);
}

Expand All @@ -36,7 +36,7 @@ public static void AddConnection(string name, ITcpConnection tcpConnection)
/// <param name="name"></param>
public static void RemoveConnection(string name)
{
AssertThat.IsTrue(_connections.ContainsKey(name));
Assert.IsTrue(_connections.ContainsKey(name));
_connections.Remove(name);
}

Expand All @@ -46,7 +46,7 @@ public static void RemoveConnection(string name)
/// <param name="name"></param>
public static void SwitchChannel(string name)
{
AssertThat.IsTrue(_connections.ContainsKey(name));
Assert.IsTrue(_connections.ContainsKey(name));
_tcpConnection = _connections[name];
}

Expand Down
4 changes: 2 additions & 2 deletions src/HiSocket.Message/HiSocket.Message.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="HiFramework.Assert, Version=1.0.3.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HiFramework.Assert.1.0.3\lib\net35\HiFramework.Assert.dll</HintPath>
<Reference Include="HiFramework, Version=1.0.8.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HiFramework.1.0.8\lib\net35\HiFramework.dll</HintPath>
</Reference>
<Reference Include="protobuf-net">
<HintPath>..\lib\protobuf-net.dll</HintPath>
Expand Down
10 changes: 5 additions & 5 deletions src/HiSocket.Message/ProtobufMsgRegister.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Description:
// Author: [email protected]
//***************************************************************************
using HiFramework.Assert;
using HiFramework;
using System;
using System.Collections.Generic;

Expand Down Expand Up @@ -32,7 +32,7 @@ public static void Init()
public static void Regist<T>(Action<T> onMsg) where T : class
{
var key = typeof(T).FullName;
AssertThat.IsFalse(_msgs.ContainsKey(key), "Already regist this key:" + key);
Assert.IsFalse(_msgs.ContainsKey(key), "Already regist this key:" + key);
var info = new ProtobufMsgRegistInfo<T>(onMsg);
_msgs.Add(key, info);
}
Expand All @@ -45,7 +45,7 @@ public static void Regist<T>(Action<T> onMsg) where T : class
public static void Unregist(Type type)
{
var key = type.FullName;
AssertThat.IsTrue(_msgs.ContainsKey(key));
Assert.IsTrue(_msgs.ContainsKey(key));
_msgs.Remove(key);
}

Expand All @@ -56,8 +56,8 @@ public static void Unregist(Type type)
/// <param name="bytes"></param>
public static void Dispatch(string key, byte[] bytes)
{
AssertThat.IsNotNullOrEmpty(key);
AssertThat.IsTrue(_msgs.ContainsKey(key));
Assert.IsNotNullOrEmpty(key);
Assert.IsTrue(_msgs.ContainsKey(key));
_msgs[key].OnBytes(bytes);
}
}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ace1f980209edf9e39567a25a37db543c54daa0c
77e77a93161ec1d350d374584e729077b32f81a6
Binary file not shown.
Binary file modified src/HiSocket.Message/obj/Debug/HiSocket.Message.dll
Binary file not shown.
Binary file modified src/HiSocket.Message/obj/Debug/HiSocket.Message.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6b4646c60974c2f57a258c06f1ec5d5cee711327
77e77a93161ec1d350d374584e729077b32f81a6
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ D:\MyGit\github\HiSocket\src\HiSocket.Message\obj\Release\HiSocket.Message.cspro
D:\MyGit\github\HiSocket\src\HiSocket.Message\obj\Release\HiSocket.Message.csproj.CopyComplete
D:\MyGit\github\HiSocket\src\HiSocket.Message\obj\Release\HiSocket.Message.dll
D:\MyGit\github\HiSocket\src\HiSocket.Message\obj\Release\HiSocket.Message.pdb
D:\MyGit\github\HiSocket\HiSocket\HiSocket.Message.dll
D:\MyGit\github\HiSocket\HiSocket\HiSocket.Message.pdb
Binary file not shown.
Binary file modified src/HiSocket.Message/obj/Release/HiSocket.Message.dll
Binary file not shown.
Binary file modified src/HiSocket.Message/obj/Release/HiSocket.Message.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion src/HiSocket.Message/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="HiFramework.Assert" version="1.0.3" targetFramework="net35" />
<package id="HiFramework" version="1.0.8" targetFramework="net35" />
</packages>
10 changes: 2 additions & 8 deletions src/HiSocket.Tcp/HiSocket.Tcp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,8 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="HiFramework, Version=1.0.6.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HiFramework.1.0.6\lib\net35\HiFramework.dll</HintPath>
</Reference>
<Reference Include="HiFramework.Assert, Version=1.0.3.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HiFramework.Assert.1.0.3\lib\net35\HiFramework.Assert.dll</HintPath>
</Reference>
<Reference Include="HiFramework.Core, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HiFramework.Core.1.0.0\lib\net35\HiFramework.Core.dll</HintPath>
<Reference Include="HiFramework, Version=1.0.8.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HiFramework.1.0.8\lib\net35\HiFramework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
10 changes: 5 additions & 5 deletions src/HiSocket.Tcp/TcpConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

using System;
using System.Collections.Generic;
using HiFramework.Assert;
using HiFramework;

namespace HiSocket.Tcp
{
Expand Down Expand Up @@ -51,7 +51,7 @@ void SocketReceiveHandler(byte[] bytes)
/// <param name="plugin"></param>
public void AddPlugin(IPlugin plugin)
{
AssertThat.IsNotNull(plugin, "Plugin is null");
Assert.IsNotNull(plugin, "Plugin is null");
plugin.TcpConnection = this;
_plugins.Add(plugin.Name, plugin);
}
Expand All @@ -63,13 +63,13 @@ public void AddPlugin(IPlugin plugin)
/// <returns>plugin</returns>
public IPlugin GetPlugin(string name)
{
AssertThat.IsNotNullOrEmpty(name, "Name is null or empty");
Assert.IsNotNullOrEmpty(name, "Name is null or empty");
return _plugins[name];
}

public bool IsPluginExist(string name)
{
AssertThat.IsNotNullOrEmpty(name, "Name is null or empty");
Assert.IsNotNullOrEmpty(name, "Name is null or empty");
return _plugins.ContainsKey(name);
}

Expand All @@ -79,7 +79,7 @@ public bool IsPluginExist(string name)
/// <param name="name">plugin's name</param>
public void RemovePlugin(string name)
{
AssertThat.IsNotNullOrEmpty(name, "Name is null or empty");
Assert.IsNotNullOrEmpty(name, "Name is null or empty");
_plugins.Remove(name);
}

Expand Down
Loading

0 comments on commit 5ae60b5

Please sign in to comment.