diff --git a/TestApp/MyService.cs b/TestApp/MyService.cs index b4cc0ee..316b8af 100644 --- a/TestApp/MyService.cs +++ b/TestApp/MyService.cs @@ -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) { diff --git a/TestApp/Program.cs b/TestApp/Program.cs index 6178ae2..589882e 100644 --- a/TestApp/Program.cs +++ b/TestApp/Program.cs @@ -9,7 +9,7 @@ namespace TestApp Bootstrap.Startup(args, () => Configuration.ReadSetFromIniFile("config.ini")) .EnableConsoleLog(ZeroLevel.Services.Logging.LogLevel.System | ZeroLevel.Services.Logging.LogLevel.FullDebug) - //.UseDiscovery() + .UseDiscovery() .Run() .WaitWhileStatus(ZeroServiceStatus.Running) .Stop(); diff --git a/ZeroLevel/Services/Network/Utils/ExClientServerCachee.cs b/ZeroLevel/Services/Network/Utils/ExClientServerCachee.cs index d036ce8..ac183c8 100644 --- a/ZeroLevel/Services/Network/Utils/ExClientServerCachee.cs +++ b/ZeroLevel/Services/Network/Utils/ExClientServerCachee.cs @@ -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 _clientInstances = new ConcurrentDictionary(); private static readonly ConcurrentDictionary _clientLocks = new ConcurrentDictionary(); diff --git a/ZeroLevel/Services/Network/Utils/Router.cs b/ZeroLevel/Services/Network/Utils/Router.cs index ec67263..2fa8116 100644 --- a/ZeroLevel/Services/Network/Utils/Router.cs +++ b/ZeroLevel/Services/Network/Utils/Router.cs @@ -11,8 +11,8 @@ namespace ZeroLevel.Network internal sealed class Router : IRouter { - public event Action OnDisconnect = _ => { }; - public event Action OnConnect = _ => { }; + public event Action OnDisconnect = _ => { }; // must be never rised + public event Action OnConnect = _ => { }; // must be never rised #region Routing diff --git a/ZeroLevel/ZeroLevel.csproj b/ZeroLevel/ZeroLevel.csproj index 9e0f1de..a622675 100644 --- a/ZeroLevel/ZeroLevel.csproj +++ b/ZeroLevel/ZeroLevel.csproj @@ -5,7 +5,7 @@ Infrastructure layer library ogoun ogoun - 3.0.0.2 + 3.0.0.3 Fix file transfer Expand serialization types https://github.com/ogoun/Zero/wiki @@ -14,8 +14,8 @@ Expand serialization types https://raw.githubusercontent.com/ogoun/Zero/master/zero.png https://github.com/ogoun/Zero GitHub - 3.0.2 - 3.0.0.2 + 3.0.3 + 3.0.0.3