Show / Hide Table of Contents

Class ResultExtensions

Provides various extension methods for FlushResult and ReadResult types.

Inheritance
Object
ResultExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: DotNext.IO.Pipelines
Assembly: DotNext.IO.dll
Syntax
public static class ResultExtensions

Methods

| Improve this Doc View Source

ThrowIfCancellationRequested(FlushResult, CancellationToken)

Throws OperationCanceledException if I/O operation is canceled.

Declaration
public static void ThrowIfCancellationRequested(this in FlushResult result, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
FlushResult result

The result of I/O operation to check.

CancellationToken token

The token that may be a source of cancellation.

Exceptions
Type Condition
OperationCanceledException

I/O operation has been canceled.

| Improve this Doc View Source

ThrowIfCancellationRequested(ReadResult, CancellationToken)

Throws OperationCanceledException if I/O operation is canceled.

Declaration
public static void ThrowIfCancellationRequested(this in ReadResult result, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
ReadResult result

The result of I/O operation to check.

CancellationToken token

The token that may be a source of cancellation.

Exceptions
Type Condition
OperationCanceledException

I/O operation has been canceled.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX