fix OnConsoleWirteLine

This commit is contained in:
Aigio Liu
2021-10-26 20:46:31 +08:00
parent c5476a9bae
commit 8e33462ad5
3 changed files with 6 additions and 6 deletions
@@ -18,7 +18,7 @@ namespace System.Application.Services
static Action? InitCoreLoggers { protected get; set; }
event Action<string>? OnConsoleWirte;
event Action<string>? OnConsoleWirteLine;
TaskCompletionSource<string>? ReadLineTask { get; }
@@ -25,7 +25,7 @@ namespace System.Application.Services.Implementation
httpService = http;
}
public event Action<string>? OnConsoleWirte;
public event Action<string>? OnConsoleWirteLine;
public TaskCompletionSource<string>? ReadLineTask { get; set; }
@@ -98,7 +98,7 @@ namespace System.Application.Services.Implementation
if (historyTarget != null)
historyTarget.NewHistoryEntry += (object? sender, HistoryTarget.NewHistoryEntryArgs newHistoryEntryArgs) =>
{
OnConsoleWirte?.Invoke(newHistoryEntryArgs.Message);
OnConsoleWirteLine?.Invoke(newHistoryEntryArgs.Message);
};
}
+3 -3
View File
@@ -59,14 +59,14 @@ namespace System.Application.Services
SteamBotsSourceList = new SourceCache<Bot, string>(t => t.BotName);
archiSteamFarmService.OnConsoleWirte += OnConsoleWirte;
archiSteamFarmService.OnConsoleWirteLine += OnConsoleWirteLine;
//InitASF();
}
void OnConsoleWirte(string message)
void OnConsoleWirteLine(string message)
{
ConsoleLogBuilder.Append(message);
ConsoleLogBuilder.AppendLine(message);
ConsoleLogText = ConsoleLogBuilder.ToString();
}