async System.Threading.Tasks.Task Clear() { if (Disabled) { return; } searchText = null; internalValue = default(TValue); selectedItem = null; selectedItems.Clear(); await ValueChanged.InvokeAsync((TValue)internalValue); if (FieldIdentifier.FieldName != null) { EditContext?.NotifyFieldChanged(FieldIdentifier); } await Change.InvokeAsync(internalValue); await grid.Reload(); StateHasChanged(); }
private void SubscribeToEventNotifications() { NotificationsHub.Subscribe <SavedInEventStoreEvent>(NotificationHubSubscriptionId, evt => { return(evt.Source != DeviceId ? Task.CompletedTask : Grid.Reload()); }); }