-
Some Things I Learned While Getting Started with .NET Standard
Tags: .NET Standard;C#; I recently created a new .NET library, which I wrote about here, and I decided to create it using the new .NET Standard library. I had read about .NET Standard when they announced it and read several articles that discussed it of which Rick Strahl’s article is a must read. As with…
-
A New Password Library in C#
Tags: C#;Security I recently had a need to generate a password that met a defined policy. I came across several good discussions on Stack Overflow that provided ways to generate cryptographically secure passwords using RNGCryptoServiceProvider to generate truly random bytes. Yet none of the discussions talked about how to implement policies such as having at…
-
Adding Diagnostics in Entity Framework Core
Tags: EFCore, ASPNETCore, Prefix, DBMonitor In my last article I talked about getting started with Entity Framework Core. In this article I want to cover the diagnostics aspect of Entity Framework Core. We will look at enabling logging in our application and how to use a profiler to get more in-depth information about Entity Framework.…
-
Getting Started with Entity Framework Core
Tags: EFCore, dotConnect, Oracle, MSSQLServer, dotnetcore Goals Having a little experience with previous versions of the Entity Framework, I wanted to learn Entity Framework Core. We use a mixture of Oracle and MS SQL Server at work, and I wanted to understand the differences of getting started with each. So in this article I will…
-
Getting Started with HangFire using ASP.NET Core and SQL Server 2016 running in Docker
There are a number of use cases when you need to perform background processing in a web application. mass notifications/newsletter; batch import from xml, csv, json; creation of archives; firing off web hooks; deleting users; building different graphs; image/video processing; purge temporary files; recurring automated reports; database maintenance; The problem is performing background jobs in…
-
What I Did When My Computer Got Infected With a Virus
My home computer got infected with a virus last week. I wish I could say it was my kids fault or my wifes, but I have to admit that it was completely my fault. I wanted to document the process I went through once I realized my computer was infected for anyone else that might…
-
Exploring SQLite’s new JSON Library
I was recently working on a console application that needed to store data locally. I had initially started by storing the data in files serialized as JSON, but the program needed the ability to perform queries over the data. I could have used LINQ to Objects after reading in the existing JSON files, but I…
-
Implementing Correlation Ids in ASP.NET MVC 6 Part 1
One design pattern related to micro services that I have read about and wanted to try to implement is correlation id’s. Correlation id’s allow distributed tracing within complex service oriented platforms, where a single request into the application can often be dealt with by multiple downstream services. Without the ability to correlate downstream service requests…
-
Setting up a New MVC 6 Project with Serilog, DryIoc, and xUnit.net
I am creating a new template project that implements a number of new technologies and design patterns that I have been wanting to learn more about and will be sharing want I learn along the way. Serilog The first thing I wanted to do was setup Serilog in a new ASP.NET MVC 6 project. I came across…
-
Team Foundation Server Permissions Oddity
I came across an interesting bug this morning in Team Foundation Server 2013 Update1 were a team member was in the Readers, Contributors, and Project Administrators groups for a project. You would expect him to have a union of the permissions granted by those roles as long as none of the roles explicitly denied a…