Partager via


MefInjection<TService,TInterface>.GetServiceAsync Méthode

Définition

Retourne de manière asynchrone le service récupéré.

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

Retours

Task<TInterface>

Instance du TService service.

Remarques

Plusieurs appels à cette méthode retournent le même instance de TInterface.

S’applique à