mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-28 14:08:16 +08:00
fix OnConsoleWirteLine
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user