1using System.Threading.Tasks;
16 Log.Terminating += Log_Terminating;
19 private static async Task Log_Terminating(
object Sender,
System.EventArgs e)
22 Log.Terminating -= Log_Terminating;
25 internal static async Task Terminate()
27 if (!(worker is
null))
41 return worker?.
Forward(Work) ?? Task.FromResult(
false);
Processes console tasks, such as input and output, in a serialized asynchronous manner.
static bool Terminated
If the console worker has been terminated.
static Task< bool > Forward(WorkItem Work)
Forwards a work item for processing.
static bool Terminating
If the console worker is being terminated.
Processes work tasks, in an asynchronous manner.
bool Terminating
If the console worker is being terminated.
bool Terminated
If the console worker has been terminated.
async Task DisposeAsync()
Stops processing tasks and disposes the queue.
Task< bool > Forward(T Work)
Forwards a work item for processing.
Represents an asynchronous operation to be performed.