Edit

Share via


PublicOrleansTaskExtensions.Box Method

Definition

Overloads

Box(Task)

Returns a Task<TResult> for the provided Task.

Box(Task<Object>)

Returns a Task<TResult> for the provided Task<TResult>.

Box<T>(Task<T>)

Returns a Task<TResult> for the provided Task<TResult>.

Box(Task)

Returns a Task<TResult> for the provided Task.

public static System.Threading.Tasks.Task<object> Box (this System.Threading.Tasks.Task task);
static member Box : System.Threading.Tasks.Task -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function Box (task As Task) As Task(Of Object)

Parameters

task
Task

The task.

Returns

Applies to

Box(Task<Object>)

Returns a Task<TResult> for the provided Task<TResult>.

public static System.Threading.Tasks.Task<object> Box (this System.Threading.Tasks.Task<object> task);
static member Box : System.Threading.Tasks.Task<obj> -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function Box (task As Task(Of Object)) As Task(Of Object)

Parameters

task
Task<Object>

The task.

Returns

Applies to

Box<T>(Task<T>)

Returns a Task<TResult> for the provided Task<TResult>.

public static System.Threading.Tasks.Task<object> Box<T> (this System.Threading.Tasks.Task<T> task);
static member Box : System.Threading.Tasks.Task<'T> -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function Box(Of T) (task As Task(Of T)) As Task(Of Object)

Type Parameters

T

The underlying type of task.

Parameters

task
Task<T>

The task.

Returns

Applies to