Compartir a través de


MefInjection<TService,TInterface>.GetServiceAsync Método

Definición

Devuelve de forma asincrónica el servicio recuperado.

public System.Threading.Tasks.Task<TInterface> GetServiceAsync();
member this.GetServiceAsync : unit -> System.Threading.Tasks.Task<'Interface>
Public Function GetServiceAsync () As Task(Of TInterface)

Devoluciones

Task<TInterface>

Una instancia del TService servicio.

Comentarios

Varias llamadas a este método devolverán la misma instancia de TInterface.

Se aplica a