C# Object to XML
C# Object to XML
C# Object to XML
JSON Object to C# Object
Error: Get the following error when trying to process a json object within Azure Function. System.Private.CoreLib: Exception while executing function: xxxxxxxx. Microsoft.Azure.WebJobs.Host: Exception binding parameter 'myQueueItem'. System.Private.CoreLib: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.... » read more
Azure functions with Storage Queue trigger has a built in retry logic based on the dequeue count of the message in the queue. You can configure the frequency of the retry in the bindings either through code or host.json. After the max number of retry, the message will be placed in the <queue-name>-poison queue. visibilityTimeout property... » read more
Example 1: Display queue message. Example 2: Place queue item in Blob container. Sources: https://www.c-sharpcorner.com/article/blob-triggers-and-queue-storage-trigger-azure-functions/
Install Install following from Nuget Package Manager Azure.StorageQueues Add following reference… Add Message To Queue Note: Call to queue is not supported in Blazor Web Assembly. You will get this error message if you try to create a message. System.Security.Cryptography.Algorithms is not supported on this platform. Sources: https://docs.microsoft.com/en-us/azure/storage/queues/storage-dotnet-how-to-use-queues?tabs=dotnet https://docs.microsoft.com/en-us/dotnet/api/overview/azure/storage.queues-readme-pre
Blazored.LocalStorage Note: This is for .NET 5.0. Example: Program.cs of Blazor Client CartStateProvider.razor in Blazor Client App.razor in Blazor Client TestCart.razor Sources: https://www.syncfusion.com/faq/blazor/general/how-do-i-access-browser-local-storage-in-blazor https://www.nuget.org/packages/Blazored.LocalStorage/
This little demo is based on a Gist written by Steve Sanderson where he shows how to persist state in the browser using sessionStorage. His demo shows how to persist the counter value but I wanted to try something a bit more real-world, a very simple shopping cart, and also to use localStorage rather than... » read more
Install the Packages Go to Tools and then select -> NuGet Package Manager -> Package Manager Console. You can see the PM> and copy and paste the below line to install the Database Provider package. This package is used to set the database provider as SQL Server You can see the PM> and copy and... » read more
Note: Does NOT work with Azure Function. Create an C# object first and then pass the C# object.