Compartilhar via


PublicOrleansTaskExtensions.Unbox<T>(Task<Object>) Método

Definição

Retorna um Task<TResult> para o fornecido Task<TResult>.

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

Parâmetros de tipo

T

O tipo subjacente de task.

Parâmetros

task
Task<Object>

A tarefa.

Retornos

Task<T>

Aplica-se a