Example #1
0
 private async void LibraryUpdated(LibraryUpdate update)
 {
     await InvokeAsync(async() =>
     {
         UpdateNotification = update;
         StateHasChanged();
         if (update.Complete)
         {
             await GetBooks();
         }
     });
 }
Example #2
0
        protected void SendLibraryUpdate()
        {
            if (!IsConnected)
            {
                return;
            }

            if (LibraryUpdate != null)
            {
                LibraryUpdate.Raise(this, new EventArgs());
            }
        }
Example #3
0
 protected override async Task OnInitializedAsync()
 {
     NotificationService.LibraryUpdated = LibraryUpdated;
     UpdateNotification = new LibraryUpdate(true);
     await GetBooks();
 }