/// <summary>
        /// Log Exception.
        /// </summary>
        /// <param name="exceptions">Exceptions to be logged.</param>
        /// <returns>Operation result detailing whether log was successful.</returns>
        public OperationResult LogExceptions(params Exception[] exceptions)
        {
            var operation =
                _component.LogExceptions(exceptions);

            ErrorLogged?.Invoke(this, new GenericEventArgs <bool>(operation.WasSuccessful));
            return(operation);
        }
 public static async Task <OperationResult> LogExceptionsAsync(this IExceptionLogger logger, params Exception[] exceptions) =>
 await Task.Run(() => logger.LogExceptions(exceptions));