Blog Posts with Tag ASP.Net

Minimal APIs in .NET Core 6

One thing I've been jealous of scripting languages over the years is how easily they can be used to build out small and simple applications. For example, Node.js has the express library whereby a complete API can be built out in a single file. While more complex projects necessitate more framework than that, the required scaffolding for a simple program is fairly low. In languages such as C#, prior to .NET 6, to build out a simple API requires some degree of pomp and…

June 11, 2021
|
approximately 3 minutes to read
Reading COVID-19 Statistics in .NET

As part of my new COVID-19 application I've been writing, I had to import statistics from a data source. The COVID Tracking Project maintains daily records of various statistics regarding the pandemic for each state and at a nation level. It publishes this data as an API and also as a set of CSV files. While the API worked, it did not provide the type of extensibility I wanted in order to serve up the data. As such, I decided to read the raw data from a CSV file to import…

February 12, 2021
|
approximately 3 minutes to read
Running Startup Logic in ASP.Net Core Applications

In web applications, it can be necessary to have tasks that run on start up of an application. In older ASP.Net, this was not as clear cut how to accomplish. In ASP.Net Core there is a clear pattern established through the IHostedService interface to make this a breeze. As part of my COVID-19 application, I had to create a few of these hosted services. For example, I had to set up my database prior to the application actually running. As this application is utilizing an in…

February 06, 2021
|
approximately 2 minutes to read
© 2024 - Built and designed by Jeremy Honl with Gatsby. Images are from Unsplash