IBlazorWebViewHandler.TryDispatchAsync(Action<IServiceProvider>) 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.
Les répartiteurs fonctionnent sur les services étendus disponibles pour les composants Razor.
public:
System::Threading::Tasks::Task<bool> ^ TryDispatchAsync(Action<IServiceProvider ^> ^ workItem);
public System.Threading.Tasks.Task<bool> TryDispatchAsync(Action<IServiceProvider> workItem);
abstract member TryDispatchAsync : Action<IServiceProvider> -> System.Threading.Tasks.Task<bool>
Public Function TryDispatchAsync (workItem As Action(Of IServiceProvider)) As Task(Of Boolean)
Paramètres
- workItem
- Action<IServiceProvider>
Travail à distribuer.
Retours
Tâche représentant true le moment où le travail a été distribué ou false lorsque Blazor n’est pas en cours d’exécution.