pull/1/head
unknown 5 years ago
parent ccfbe6eca6
commit 9f1bcfa923

@ -19,7 +19,7 @@ namespace TestApp
{
Log.Info("Started");
ReadServiceInfo();
var host = UseHost(8800);
var host = UseHost();
AutoregisterInboxes(host);
host.OnConnect += Host_OnConnect;
host.OnDisconnect += Host_OnDisconnect;
@ -31,7 +31,7 @@ namespace TestApp
Interlocked.Exchange(ref counter, 0);
});
Exchange.RoutesStorage.Set("test.app", new IPEndPoint(IPAddress.Loopback, 8800));
//Exchange.RoutesStorage.Set("test.app", new IPEndPoint(IPAddress.Loopback, 8800));
while (true)
{

@ -9,7 +9,7 @@ namespace TestApp
Bootstrap.Startup<MyService>(args,
() => Configuration.ReadSetFromIniFile("config.ini"))
.EnableConsoleLog(ZeroLevel.Services.Logging.LogLevel.System | ZeroLevel.Services.Logging.LogLevel.FullDebug)
//.UseDiscovery()
.UseDiscovery()
.Run()
.WaitWhileStatus(ZeroServiceStatus.Running)
.Stop();

@ -8,11 +8,6 @@ namespace ZeroLevel.Network
internal sealed class ExClientServerCachee
: IDisposable
{
static ExClientServerCachee()
{
Sheduller.RemindEvery(TimeSpan.FromSeconds(30), () => { Log.Info(string.Join("\r\n", _clientInstances.Keys)); });
}
private static readonly ConcurrentDictionary<string, ExClient> _clientInstances = new ConcurrentDictionary<string, ExClient>();
private static readonly ConcurrentDictionary<string, object> _clientLocks = new ConcurrentDictionary<string, object>();

@ -11,8 +11,8 @@ namespace ZeroLevel.Network
internal sealed class Router
: IRouter
{
public event Action<ISocketClient> OnDisconnect = _ => { };
public event Action<ExClient> OnConnect = _ => { };
public event Action<ISocketClient> OnDisconnect = _ => { }; // must be never rised
public event Action<ExClient> OnConnect = _ => { }; // must be never rised
#region Routing

@ -5,7 +5,7 @@
<Description>Infrastructure layer library</Description>
<Authors>ogoun</Authors>
<Company>ogoun</Company>
<AssemblyVersion>3.0.0.2</AssemblyVersion>
<AssemblyVersion>3.0.0.3</AssemblyVersion>
<PackageReleaseNotes>Fix file transfer
Expand serialization types</PackageReleaseNotes>
<PackageProjectUrl>https://github.com/ogoun/Zero/wiki</PackageProjectUrl>
@ -14,8 +14,8 @@ Expand serialization types</PackageReleaseNotes>
<PackageIconUrl>https://raw.githubusercontent.com/ogoun/Zero/master/zero.png</PackageIconUrl>
<RepositoryUrl>https://github.com/ogoun/Zero</RepositoryUrl>
<RepositoryType>GitHub</RepositoryType>
<Version>3.0.2</Version>
<FileVersion>3.0.0.2</FileVersion>
<Version>3.0.3</Version>
<FileVersion>3.0.0.3</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

Loading…
Cancel
Save

Powered by TurnKey Linux.