Fix configuration
pull/1/head
unknown 5 years ago
parent 9f1bcfa923
commit 80b9a490a3

@ -19,7 +19,7 @@ namespace TestApp
{
Log.Info("Started");
ReadServiceInfo();
var host = UseHost();
var host = UseHost(8800);
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)
{

@ -6,10 +6,11 @@ namespace TestApp
{
private static void Main(string[] args)
{
Configuration.Save(Configuration.ReadFromApplicationConfig());
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();

@ -59,7 +59,7 @@ namespace ZeroLevel
}
else
{
throw new Exception("Default configuration exists already");
DefaultSet.Merge(Configuration.CreateSet(configuration));
}
}
@ -76,7 +76,7 @@ namespace ZeroLevel
}
else
{
throw new Exception("Default configurationset set already");
DefaultSet.Merge(configuration);
}
}

@ -5,17 +5,16 @@
<Description>Infrastructure layer library</Description>
<Authors>ogoun</Authors>
<Company>ogoun</Company>
<AssemblyVersion>3.0.0.3</AssemblyVersion>
<PackageReleaseNotes>Fix file transfer
Expand serialization types</PackageReleaseNotes>
<AssemblyVersion>3.0.0.4</AssemblyVersion>
<PackageReleaseNotes>Fix configuration</PackageReleaseNotes>
<PackageProjectUrl>https://github.com/ogoun/Zero/wiki</PackageProjectUrl>
<Copyright>Copyright Ogoun 2019</Copyright>
<PackageLicenseUrl>https://opensource.org/licenses/MIT</PackageLicenseUrl>
<PackageIconUrl>https://raw.githubusercontent.com/ogoun/Zero/master/zero.png</PackageIconUrl>
<RepositoryUrl>https://github.com/ogoun/Zero</RepositoryUrl>
<RepositoryType>GitHub</RepositoryType>
<Version>3.0.3</Version>
<FileVersion>3.0.0.3</FileVersion>
<Version>3.0.4</Version>
<FileVersion>3.0.0.4</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

Loading…
Cancel
Save

Powered by TurnKey Linux.