Synced
LogRouter.TryDispatch
Section titled “LogRouter.TryDispatch”
- Attempts to queue an immutable entry, draining it inline when the host has no logging worker.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Logging
Declaration
Section titled “Declaration”public bool Inno.Core.Logging.LogRouter.TryDispatch(Inno.Core.Logging.LogEntry entry)Parameters
Section titled “Parameters”Parameter entry: The message to accept under the current severity policy.
Returns
Section titled “Returns”True when accepted or filtered by policy; false when bounded queue capacity is exhausted.
Remarks
Section titled “Remarks”Inline callers serialize delivery. Entries written by a sink callback are queued until every sink has received the current entry, without recursively invoking callbacks.
Exceptions
Section titled “Exceptions”Exception T:System.ObjectDisposedException: The router has stopped accepting work.