MefInjection<TService,TInterface>.GetServiceAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
.