---
title: "Introducing NCrontab Tester (Blazor WebAssembly)"
excerpt: "Introducing NCrontab Expression tester, made using NCrontab .NET library, Blazor WebAssembly, and hosted on Azure Static Web Apps"
publishDate: "2020-08-05T00:00:00"
createDate: "2020-08-06T00:33:17.877"
updateDate: "2020-11-24T05:15:51.217"
category: "dotnet"
categoryName: ".NET"
tags: [".NET","dotnet","ASP.NET","ASPNET","Blazor","WebAssembly","WASM","Azure","SWA","C#","CSharp"]
permalink: "/blog/dotnet/introducing-ncrontab-tester-blazor-webassembly"
canonical: "/blog/dotnet/introducing-ncrontab-tester-blazor-webassembly"
image: {"src":"/media/cnxnsycg/capture2.png","focalPoint":{"left":0.5,"top":0.5},"crops":[{"alias":"Banner","width":1120,"height":400,"coordinates":{"x1":0.08353445160540506,"y1":0.1433631303761174,"x2":0.09928069573302378,"y2":0.40486229911090765}}]}
imageAlt: "Screenshot of NCrontab Expression Tester tool"
imageBackgroundColor: "#fff"
thumbnailImage: {"src":"/media/i2knqbmn/capture.png","focalPoint":{"left":0.5,"top":0.5},"crops":[{"alias":"thumbnail","width":250,"height":250,"coordinates":{"x1":0.033662383128413575,"y1":0.04494483022090384,"x2":0.4403628804901243,"y2":0.1524689158343847}}]}
thumbnailImageAlt: "Screenshot of NCrontab Expression Tester tool"
metaTitle: "Introducing NCrontab Expression Tester (Blazor WebAssembly)"
metaDescription: "Introducing NCrontab Expression tester, made using NCrontab .NET library, Blazor WebAssembly, and hosted on Azure Static Web Apps"
ogTitle: "Introducing NCrontab Expression Tester (Blazor WebAssembly)"
ogDescription: "Introducing NCrontab Expression tester, made using NCrontab .NET library, Blazor WebAssembly, and hosted on Azure Static Web Apps"
ogImage: {"src":"/media/a5chwb1z/capture2.png","focalPoint":{"left":0.5,"top":0.5},"crops":[{"alias":"OpenGraph","width":1200,"height":630,"coordinates":{"x1":0.07733581789992745,"y1":0.13681450233724776,"x2":0.09406613317227845,"y2":0.18980161897161094}}]}
ogImageAlt: "Screenshot of NCrontab Expression Tester tool"
relatedPostKeys: ["0da0d49da8fd41aaad1f4a7accdffe68","b557fd4ec5fe4824bdf927b58d59e469"]
noIndex: false
noFollow: false
sitemapExclude: false
source: {"nodeId":1278,"contentKey":"05cf47f1c9ef49078fde78cde0b30f6c","sortOrder":44}
---


Web Assembly (WASM) has allowed many different programming platforms to now be supported inside of the web browser. With <a rel="noopener" href="https://devblogs.microsoft.com/aspnet/blazor-webassembly-3-2-0-now-available/" target="_blank">Blazor WebAssembly</a>, we can now develop C# .NET applications that run inside of the browser sandbox.





This also means that many .NET libraries can be used within the same context, such as <a href="https://github.com/atifaziz/NCrontab">NCrontab</a>. This library provides crontab parsing, crontab formatting and the DateTime calculation of occurrences based on a crontab expression. As opposed to the five-part format for classic CRON expressions, NCrontab support a six-part format that allows for seconds to be configured as well. The six-part NCrontab syntax is mandatory for Azure services such as <a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs=csharp#ncrontab-expressions" class="alert-link">Timer Triggered Azure Functions</a> and <a href="https://docs.microsoft.com/en-us/azure/app-service/webjobs-create#ncrontab-expressions" class="alert-link">scheduled Azure WebJobs.</a>





There are many CRON Expression tools on the web. I chose to create another CRON Expression tool because of these reasons:





- NCrontabs syntax is slightly different than classic CRON expressions when using the six-part format required for Azure.
- NCrontab is a popular library for .NET CRON parsing. It's used by Azure services and Hangfire.
- It seemed like a fun exercise to get familiar with the new Blazor WebAssembly framework





To make this little exercise even more interesting for myself, I am using the new Azure Static Web Apps (in preview) service to host the Blazor WebAssembly application as a static web application.





Follow this link to give the tool a try:




<p style="text-align: center;"><a href="https://ncrontab.swimburger.net/" class="btn">NCrontab Expression Tester</a></p>



<p style="text-align: left;">Follow this link to check out the source code:</p>



<p style="text-align: center;"><a href="https://github.com/Swimburger/NCrontabTester" class="btn">GitHub Repository</a></p>
