MefInjection<TService,TInterface>.GetServiceAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.