Comments for PureSourceCode https://puresourcecode.com/ All technologies, only pure source code Tue, 19 Aug 2025 16:49:22 +0000 hourly 1 https://wordpress.org/?v=6.9.4 Comment on MAUI Push Notifications using Azure Notification Hub by Helen Mamalaki https://puresourcecode.com/dotnet/maui/maui-push-notifications-using-azure-notification-hub/#comment-662 Tue, 19 Aug 2025 16:49:22 +0000 https://puresourcecode.com/?p=56024#comment-662 Thank you so much for the blog – this has been really useful. Particularly the App Registration bit.

I’ve followed your steps with very minor differences. e.g. I had to manually associate my app by changing the app manifest as the Publish wizard does not work for me at all,
After running the app, my Notification Hub is showing 0 Registered devices and so of course the test send is not being received by
channel.PushNotificationReceived += Channel_PushNotificationReceived;

I will keep at it but just wanted to see if you had any advice to debug what could be going on in the mean time.

]]>
Comment on Custom User Management with NET8 and Blazor by Bryan Palmer https://puresourcecode.com/dotnet/blazor/custom-user-management-with-net8-and-blazor/#comment-661 Mon, 24 Feb 2025 14:42:14 +0000 https://puresourcecode.com/?p=45376#comment-661 In reply to Enrico.

I think you misunderstood. Yes, I did the migrations and I can see all the new tables. All of them are used, EXCEPT for the new User table. The new User table is created, but is not ever used. Even after you add in the new columns, and show the updated table structure in your screenshot, it is using the old AspNetUsers table, not the new User table. At no point does the new User table get used.

]]>
Comment on Custom User Management with NET8 and Blazor by Enrico https://puresourcecode.com/dotnet/blazor/custom-user-management-with-net8-and-blazor/#comment-660 Sun, 23 Feb 2025 22:55:24 +0000 https://puresourcecode.com/?p=45376#comment-660 In reply to Bryan Palmer.

If you recreate the migration for the ApplicationDbContext, you can see the new name of the tables.

]]>
Comment on Custom User Management with NET8 and Blazor by Bryan Palmer https://puresourcecode.com/dotnet/blazor/custom-user-management-with-net8-and-blazor/#comment-659 Sat, 22 Feb 2025 18:17:49 +0000 https://puresourcecode.com/?p=45376#comment-659 Almost all of this has been fantastic, but I am a little confused on one little part. In the section where you rename the identity table names and save migration and apply, an Identity.User table is created identical to the AspNetUsers table, which isn’t actually listed in the list of table changes. Then when you apply the custom columns, it is the AspNetUsers table that gets those changes, not the Users table. Registering users also uses the AspNetUsers table. Why is AspNetUsers still being used if the builder.Entity is being set to User?

]]>
Comment on Custom User Management with NET8 and Blazor by Steve Hall https://puresourcecode.com/dotnet/blazor/custom-user-management-with-net8-and-blazor/#comment-658 Thu, 09 Jan 2025 11:34:31 +0000 https://puresourcecode.com/?p=45376#comment-658 So useful – easy enough for a novice like me! Many thanks.
Any idea why I get this error when accessing the link to the manage account page? InvalidOperationException: A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext.

]]>
Comment on Maui CommunityToolkit Popup crashes applications by Art Bergquist https://puresourcecode.com/dotnet/maui/maui-communitytoolkit-popup-crashes-applications/#comment-656 Mon, 28 Oct 2024 21:50:19 +0000 https://puresourcecode.com/?p=60130#comment-656 Thanks, Enrico.

We got the same error and are very thankful for your post!

Art Bergquist

]]>
Comment on MAUI Push Notifications using Azure Notification Hub for iOS by Enrico https://puresourcecode.com/dotnet/maui/maui-push-notifications-using-azure-notification-hub-for-ios/#comment-655 Thu, 04 Jul 2024 21:18:51 +0000 https://puresourcecode.com/?p=56736#comment-655 In reply to Román Ramírez García.

I’m on holiday right now. I’ll create a project for it when I’m back.

]]>
Comment on MAUI Push Notifications using Azure Notification Hub for iOS by Román Ramírez García https://puresourcecode.com/dotnet/maui/maui-push-notifications-using-azure-notification-hub-for-ios/#comment-654 Thu, 04 Jul 2024 20:05:15 +0000 https://puresourcecode.com/?p=56736#comment-654 Hi.

I´m having the same problem as Chad. CreateToken method is undefined. Can you give us more information about this?

]]>
Comment on MAUI Push Notifications using Azure Notification Hub for iOS by Suhas M R https://puresourcecode.com/dotnet/maui/maui-push-notifications-using-azure-notification-hub-for-ios/#comment-652 Wed, 26 Jun 2024 12:38:29 +0000 https://puresourcecode.com/?p=56736#comment-652 Hi Enrico,
Thank you very much for providing guidance on implementing push notifications using Azure Notification Hub for the .NET MAUI iOS platform. I have meticulously followed your code and integrated it into my project, but I am currently unable to receive push notifications.

Could you please share a sample repository containing all the necessary code? This would greatly help me identify where I might be going wrong.

Additionally, could you provide instructions on how to test the iOS platform by sending test notifications from the Azure Portal Notification Hub? At the moment, my device is not being registered, and I do not see any registered devices on the portal. Any assistance with this issue would be greatly appreciated. Thank you.

]]>
Comment on MAUI Push Notifications using Azure Notification Hub for iOS by Enrico https://puresourcecode.com/dotnet/maui/maui-push-notifications-using-azure-notification-hub-for-ios/#comment-651 Fri, 21 Jun 2024 06:52:41 +0000 https://puresourcecode.com/?p=56736#comment-651 In reply to Chad Butler.

I can guarantee you the solution with Azure is working just fine.

]]>
Comment on MAUI Push Notifications using Azure Notification Hub for iOS by Chad Butler https://puresourcecode.com/dotnet/maui/maui-push-notifications-using-azure-notification-hub-for-ios/#comment-650 Thu, 20 Jun 2024 20:13:37 +0000 https://puresourcecode.com/?p=56736#comment-650 Also CreateToken is undefined. I appreciate you posting this. I was about to give up and use google firebase.

]]>
Comment on MAUI Push Notifications using Azure Notification Hub for iOS by Chad Butler https://puresourcecode.com/dotnet/maui/maui-push-notifications-using-azure-notification-hub-for-ios/#comment-649 Thu, 20 Jun 2024 14:00:01 +0000 https://puresourcecode.com/?p=56736#comment-649 In reply to Enrico.

Yes using Azure Hub and Maui 8 IOS

]]>
Comment on MAUI Push Notifications using Azure Notification Hub for iOS by Enrico https://puresourcecode.com/dotnet/maui/maui-push-notifications-using-azure-notification-hub-for-ios/#comment-648 Wed, 19 Jun 2024 06:55:46 +0000 https://puresourcecode.com/?p=56736#comment-648 In reply to Chad Butler.

The code is in the posts. Do you need the implementation for iOS?

]]>
Comment on MAUI Push Notifications using Azure Notification Hub for iOS by Chad Butler https://puresourcecode.com/dotnet/maui/maui-push-notifications-using-azure-notification-hub-for-ios/#comment-647 Tue, 18 Jun 2024 12:49:50 +0000 https://puresourcecode.com/?p=56736#comment-647 Is this code available? I am inferring some things, one that when you say UNUserNotificationCenter.Current.Delegate = this;
that the IUNUserNotificationCenterDelegate has been added to the class. Also hard to understand where the rest of the code goes.

]]>
Comment on Microsoft unveils All-Digital Xbox Series by Jaka https://puresourcecode.com/news/microsoft/microsoft-unveils-all-digital-xbox-series/#comment-643 Sun, 09 Jun 2024 22:51:06 +0000 https://puresourcecode.com/?p=60070#comment-643 i love your blog its amazing . please think about visiting mine

I will follow and give a like! My Blog is about the GTA 5 Game. Check it here http://www.eXclusiveModz.com

]]>
Comment on NET8, Blazor and Custom User Management by Enrico https://puresourcecode.com/dotnet/blazor/net8-blazor-and-custom-user-management/#comment-618 Mon, 22 Jan 2024 11:35:33 +0000 https://puresourcecode.com/?p=45486#comment-618 In reply to digitarenet.

I shared my repository with Microsoft and they gave me this solution/workaround. So, I think this implementation is correct.

]]>
Comment on NET8, Blazor and Custom User Management by digitarenet https://puresourcecode.com/dotnet/blazor/net8-blazor-and-custom-user-management/#comment-617 Wed, 17 Jan 2024 10:25:57 +0000 https://puresourcecode.com/?p=45486#comment-617 In the UploadProfilePicture Component is correct to update the User parameter? Best practice not indicate to update only private vars to avoid external update of the parameter?

]]>
Comment on Custom User Management with NET8 and Blazor by Enrico https://puresourcecode.com/dotnet/blazor/custom-user-management-with-net8-and-blazor/#comment-616 Thu, 21 Dec 2023 10:18:02 +0000 https://puresourcecode.com/?p=45376#comment-616 In reply to bozos13.

Thank you for your comments. I’ll add it to

]]>
Comment on Custom User Management with NET8 and Blazor by bozos13 https://puresourcecode.com/dotnet/blazor/custom-user-management-with-net8-and-blazor/#comment-615 Thu, 21 Dec 2023 10:16:55 +0000 https://puresourcecode.com/?p=45376#comment-615 Just add reference @using BlazorIdentity.Components.Identity to _Imports.razor and logout works fine

]]>
Comment on Custom User Management with NET8 and Blazor by bozos13 https://puresourcecode.com/dotnet/blazor/custom-user-management-with-net8-and-blazor/#comment-614 Wed, 20 Dec 2023 13:18:11 +0000 https://puresourcecode.com/?p=45376#comment-614 Logout not working

]]>
Comment on Custom User Management with NET8 and Blazor by bozos13 https://puresourcecode.com/dotnet/blazor/custom-user-management-with-net8-and-blazor/#comment-613 Wed, 20 Dec 2023 12:00:46 +0000 https://puresourcecode.com/?p=45376#comment-613 Great tutorial exactly what I am looking for, thanks

]]>
Comment on Blazor using HttpClient with authentication by Enrico https://puresourcecode.com/dotnet/blazor/blazor-using-httpclient-with-authentication/#comment-612 Wed, 15 Nov 2023 20:01:35 +0000 https://puresourcecode.com/?p=26236#comment-612 In reply to Александр Глазков.

Hello! Happy the post was useful! You should have the User.Identity.Name in your controller. Remember that with the new browsers, the user token is not allowed to be read and save or share. You have to use BFF for the complete implementation with Identity Server (https://docs.duendesoftware.com/identityserver/v5/bff/). In my new post, I created the authentication with Microsoft Identity

]]>
Comment on Blazor using HttpClient with authentication by Александр Глазков https://puresourcecode.com/dotnet/blazor/blazor-using-httpclient-with-authentication/#comment-611 Tue, 07 Nov 2023 20:52:54 +0000 https://puresourcecode.com/?p=26236#comment-611 Thank you for your article! I reproduced an example of your article. Authentication works. On the client, I can get the username from the AuthenticationStateProvider. But in the controller on the server, I also see all the same Claims in the debugger as shown in the picture (https://i0.wp.com/puresourcecode.com/wp-content/uploads/2021/05/12-Inspecting-Attached-Access-Token-with-Blazor-WebAssembly-HttpClient.png?resize=768%2C396&ssl=1), but they do not have a Claim of the “name” type. In the controller in User.Identity.Name is also null for me too. How do I get the username on the server in the controller?

]]>
Comment on Using Chart.js with Blazor by Enrico https://puresourcecode.com/dotnet/blazor/using-chart-js-with-blazor/#comment-582 Tue, 10 Jan 2023 15:47:04 +0000 https://puresourcecode.com/?p=27800#comment-582 In reply to limoshawdz.

Hello! The event onclick raises only when a user clicks on the graph.

]]>
Comment on Using Chart.js with Blazor by limoshawdz https://puresourcecode.com/dotnet/blazor/using-chart-js-with-blazor/#comment-581 Tue, 10 Jan 2023 08:05:03 +0000 https://puresourcecode.com/?p=27800#comment-581 This is exactly what I was after, any chance you can guide me on how I can handle chart onclick event for further drill down?

]]>