private void SubscribeToEventNotifications() { NotificationsHub.Subscribe <SavedInEventStoreEvent>(NotificationHubSubscriptionId, evt => { return(evt.Source != DeviceId ? Task.CompletedTask : Grid.Reload()); }); }
protected override Task OnInitializedAsync() { NotificationsHub.Subscribe <SavedInEventStoreEvent>(NotificationHubSubscriptionId, () => { if (!AutoUpdateCheckBox) { return(Task.CompletedTask); } _isNewEventComing = true; return(Task.CompletedTask); }); return(Task.CompletedTask); }