Delen via


MefInjection<TService,TInterface>.GetServiceAsync Method

Definition

Asynchronously returns the retrieved service.

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

Returns

Task<TInterface>

An instance of the TService service.

Remarks

Multiple calls to this method will return the same instance of TInterface.

Applies to