fixes for things that should have been in the previous release
console output reenabled server start task actually runs
This commit is contained in:
parent
1dc0f5a240
commit
b99cc424e7
@ -6,7 +6,7 @@
|
||||
<RuntimeFrameworkVersion>2.2.2</RuntimeFrameworkVersion>
|
||||
<MvcRazorExcludeRefAssembliesFromPublish>false</MvcRazorExcludeRefAssembliesFromPublish>
|
||||
<PackageId>RaidMax.IW4MAdmin.Application</PackageId>
|
||||
<Version>2.2.7.2</Version>
|
||||
<Version>2.2.7.3</Version>
|
||||
<Authors>RaidMax</Authors>
|
||||
<Company>Forever None</Company>
|
||||
<Product>IW4MAdmin</Product>
|
||||
@ -32,8 +32,8 @@
|
||||
<PropertyGroup>
|
||||
<ServerGarbageCollection>true</ServerGarbageCollection>
|
||||
<TieredCompilation>true</TieredCompilation>
|
||||
<AssemblyVersion>2.2.7.2</AssemblyVersion>
|
||||
<FileVersion>2.2.7.2</FileVersion>
|
||||
<AssemblyVersion>2.2.7.3</AssemblyVersion>
|
||||
<FileVersion>2.2.7.3</FileVersion>
|
||||
<LangVersion>7.1</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
@ -47,6 +47,12 @@
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="DefaultSettings.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Update="Microsoft.NETCore.App" Version="2.2.2" />
|
||||
</ItemGroup>
|
||||
|
@ -656,9 +656,9 @@ namespace IW4MAdmin.Application
|
||||
}
|
||||
}
|
||||
|
||||
public Task Start()
|
||||
public async Task Start()
|
||||
{
|
||||
return Task.WhenAll(new[]
|
||||
await Task.WhenAll(new[]
|
||||
{
|
||||
SendHeartbeat(),
|
||||
UpdateServerStates()
|
||||
|
@ -85,6 +85,7 @@ namespace IW4MAdmin.Application
|
||||
Console.WriteLine(e.Message);
|
||||
Console.WriteLine(exitMessage);
|
||||
Console.ReadKey();
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
@ -113,9 +114,9 @@ namespace IW4MAdmin.Application
|
||||
|
||||
var tasks = new[]
|
||||
{
|
||||
ServerManager.Start(),
|
||||
webfrontTask,
|
||||
ReadConsoleInput(),
|
||||
ServerManager.Start(),
|
||||
};
|
||||
|
||||
await Task.WhenAll(tasks);
|
||||
|
@ -1,12 +1,12 @@
|
||||
using SharedLibraryCore;
|
||||
using SharedLibraryCore.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
|
||||
namespace IW4MAdmin.Application
|
||||
{
|
||||
class Logger : SharedLibraryCore.Interfaces.ILogger
|
||||
class Logger : ILogger
|
||||
{
|
||||
enum LogType
|
||||
{
|
||||
@ -55,7 +55,6 @@ namespace IW4MAdmin.Application
|
||||
|
||||
void Write(string msg, LogType type)
|
||||
{
|
||||
return;
|
||||
OnLogWriting.Wait();
|
||||
|
||||
string stringType = type.ToString();
|
||||
|
Loading…
Reference in New Issue
Block a user