コード例 #1
0
ファイル: ErrorLog.cs プロジェクト: ssdevref/ElmahCore
        /// <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
ファイル: ErrorLog.cs プロジェクト: ssdevref/ElmahCore
        /// <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
ファイル: ErrorLog.cs プロジェクト: ssdevref/ElmahCore
        /// <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));
        }