Latest Posts On Code Maze

Code Maze Weekly #51

Code Maze Weekly #51

This has been a big week for .NET developers around the world and we've been blown away by the sheer amount of new things that were announced at .NET Conf. If you've missed it, we suggest watching it because some of the demos were out of this world. For those that...

Using Azure WebJobs in .NET Applications

Using Azure WebJobs in .NET Applications

It is a very common requirement for web applications to be able to run background tasks. Scheduling tasks to run at specific times or intervals, triggering jobs to run based on certain events, etc are common scenarios that we encounter while developing applications....

Global HTTP Error Handling in Blazor WebAssembly

Global HTTP Error Handling in Blazor WebAssembly

In this article, we are going to learn about handling HTTP errors in the Blazor WebAssembly application. We are going to start with a simple example, and then improve the solution until we implement global HTTP error handling with the Blazor WebAssembly interceptor....

Lazy Loading in Blazor WebAssembly

Lazy Loading in Blazor WebAssembly

In this article, we are going to learn how to implement Lazy Loading in Blazor WebAssembly. Lazy Loading enables us to improve the startup speed of our Blazor WebAssembly application by delaying the download of the resources we do not require yet. For example, if we...

Code Maze Weekly #50

Code Maze Weekly #50

In this special issue #50, we've got important news about .NET 5, which is going to be revealed and released next week on .NET Conf! We look forward to new features and optimizations and we're going to focus a lot on them in the following months. Other than that,...

Wrapping JavaScript Libraries with C# in Blazor WebAssembly

Wrapping JavaScript Libraries with C# in Blazor WebAssembly

Up until now, in this series of articles, we have learned how to call JavaScript code from C#, how to call C# code from JavaScript, and also how to extract a JS code and use it from the Razor class library. But all the time, we had to write some JavaScript code to...

How to Use Browser Functionalities with Blazor WebAssembly

How to Use Browser Functionalities with Blazor WebAssembly

There are a lot of browser functionalities that we can use in our Blazor WebAssembly application like local storage, session storage, offline/online status, etc. These can be quite useful, so in this article, we are going to learn how to use browser functionalities...

Code Maze Weekly #49

Code Maze Weekly #49

🎃👻🕷️ "When witches go riding, And black cats are seen, The Moon laughs and whispers, 'Tis near Halloween" 🎃👻🕷️ Hope you're having fun. If not, check this week's articles and you'll be having it very soon 😁 .NET and C# C# in Simple Terms - Interfaces and Abstract...

Elasticsearch in ASP.NET Core

Elasticsearch in ASP.NET Core

In this article, we are going to use the popular open-source search and analytics engine - Elasticsearch to power a simple search system in ASP.NET Core. To download the source code for this article, visit Elasticsearch in ASP.NET Core...

Using JSInterop to Pass HTML Elements and Handle JS Errors

Using JSInterop to Pass HTML Elements and Handle JS Errors

In the previous article, we've started a topic about calling JavaScript functions from C# and reached a certain point. Now, it is time to continue that story and explain more about using JSInterop to pass HTML elements to JavaScript functions in Blazor WebAssembly....

Code Maze Weekly #48

Code Maze Weekly #48

Hey everyone, W.... eekend is coming, and that's our favorite time to relax and recharge. We've prepared a fresh batch of interesting articles for you to enjoy this time. So prepare your favorite brew, sit down, and pick your favorite topic from the list. .NET and C#...

Deploying ASP.NET Core Web API to Azure API Apps

Deploying ASP.NET Core Web API to Azure API Apps

We have learned how to create an Azure Web App and deploy an ASP.NET Core app into it using Visual Studio in our Publishing an ASP.NET Core App to Azure App Service Using Visual Studio article. Then we looked at how to create an App Service from the Azure Portal and...

Blazor WebAssembly Role-Based Security with IdentityServer4

Blazor WebAssembly Role-Based Security with IdentityServer4

In this article, we are going to learn more about the Blazor WebAssembly Role-Based Security and how IdentityServer4 fits into the whole story. Also, we are going to include our API application in this process and protect our endpoints with the required role. [sc...

Code Maze Weekly #47

Code Maze Weekly #47

The elephant in the room this time is the release of RC2 for .NET 5. This is the last step before the full release of .NET 5. We hope you're as excited as we are because it's going to be awesome. There are many features we look forward to, especially in Blazor...

Continuous Deployment from GitHub to Azure App Service

Continuous Deployment from GitHub to Azure App Service

We learned about Azure App Service and how to deploy our ASP.NET Core application into it from Visual Studio in the Publishing an ASP.NET Core App to Azure App Service Using Visual Studio article. In this article, we are going to learn how to configure Continuous...

Using Access Token with Blazor WebAssembly HttpClient

Using Access Token with Blazor WebAssembly HttpClient

In this article, we are going to learn how to use generated Access Token with Blazor WebAssembly to gain access to the protected resources on the Web API's side. Until now, we have integrated the Blazor WebAssembly app with IdentityServer4 and enabled login and logout...

How to Secure Blazor WebAssembly with IdentityServer4

How to Secure Blazor WebAssembly with IdentityServer4

Blazor WebAssembly runs on the client and thus, it can't be trusted. This means that just like with any JavaScript application, the authorization part can be bypassed. So, this means that we have to implement our authorization actions outside of the Blazor WebAssembly...

Code Maze Weekly #46

Code Maze Weekly #46

This week we've had plenty of articles to go through, and we loved it. As always there are a variety of categories and topics to choose from, so make yourself comfy, prepare a favorite brew, and just click on your favorite topic to read. .NET and C# Adding health...