/// <summary> /// When overridden in a subclass, starts a task that asynchronously /// does the same as <see cref="GetErrors"/>. /// </summary> public virtual Task <int> GetErrorsAsync(int pageIndex, int pageSize, ICollection <ErrorLogEntry> errorEntryList, CancellationToken cancellationToken) { return(Async.RunSynchronously(GetErrors, pageIndex, pageSize, errorEntryList)); }
/// <summary> /// When overridden in a subclass, starts a task that asynchronously /// does the same as <see cref="Log"/>. An additional parameter /// specifies a <see cref="CancellationToken"/> to use. /// </summary> public virtual Task <string> LogAsync(Error error, CancellationToken cancellationToken) { return(Async.RunSynchronously(Log, error)); }
/// <summary> /// When overridden in a subclass, starts a task that asynchronously /// does the same as <see cref="GetError"/>. An additional parameter /// specifies a <see cref="CancellationToken"/> to use. /// </summary> public virtual Task <ErrorLogEntry> GetErrorAsync(string id, CancellationToken cancellationToken) { return(Async.RunSynchronously(GetError, id)); }