Thanks I read the example. Never ask without reading the manual
Do I need to attach an eventhandler? There are now way to return the value to the calling method?
public Task<object> OpenAsync<T>(
string title,
Dictionary<string, object> parameters = null,
DialogOptions options = null)
where T : ComponentBase
{
TaskCompletionSource<object> completionSource = new TaskCompletionSource<object>();
this.tasks.Add(completionSource);
this.OpenDialog<T>(title, parameters, options);
return completionSource.Task;
}