示例#1
0
        /// <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));
        }
示例#2
0
        /// <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));
        }
示例#3
0
        /// <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));
        }