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

                _isNewEventComing = true;
                return(Task.CompletedTask);
            });

            return(Task.CompletedTask);
        }