Archives
-
Calling ASP.NET Web API end-points for testing purposes with Refit in .NET Core
Back in August I wrote Calling ASP.NET Web API end-points for testing purposes where I described a "bare metal" approach to calling Web Api methods using HttpClient by creating a wrapper that could …
-
Getting the tail of a file in PowerShell (and dropping it into a GridView)
I've had need to wrangle a very long log file recently that gets appended to and doesn't have any log file splitting / cycling baked into it. Changing the logging process so that it generates a …
-
When's my domain password due to change?
If I'm due to take annual leave (as I did last week) I like to check that my password isn't going to expire whilst I'm out of the office and change it a couple of days before I go on leave, just …
-
Using IUserValidator to provide additional user validation rules in ASP.NET Core Identity
In my recent series of posts I extended the UserManager class from ASP.NET Core Identity (specifically its CreateAsync method) in order to confirm that the user was permitted to register and also …
-
Useful links around ASP.NET Core Identity
Whilst working on my recent series of posts about ASP.NET Core Identity there were quite a few pages I used to research either the topic in general, or issues I encountered. Here's a selection of …
-
The finishing touches to hooking into ASP.NET Core Identity user creation
In my previous posts I've setup ASP.NET Core Identity, tweaked the IDs (just because I can), extended the Identity so it stores extra data and started the process of pulling it all together by …
-
Refreshing the IntelliSense cache in Azure Data Studio
As with SQL Server Management Studio, Visual Studio and Visual Studio Code (the latter being the product Azure Data Studio is based on) there's support for IntelliSense, which is why in the …
-
Extending the ASP.NET Core Identity UserManager to set the Employee Id during registration
In previous posts I looked at adding a custom property to the ASP.NET Core Identity user, along with reading and writing the property for a logged in user. The next logical step, assuming that the …
-
Reading and writing custom ASP.NET Core Identity user properties
Adding a custom property to users that're accessed via ASP.NET Core Identity is ultimately a fairly simple exercise; extend the IdentityUser type with a custom one, fix up all the places that refer …
-
Conditionally colouring text in SQL Server Reporting Services
SQL Server Reporting Services is a great tool for building reports quickly, except for the horrendously hard to maintain XML format that the report definitions get persisted in. Recently I was …
-
Extending the ASP.NET Core Identity user
In two recent posts I've been looking at ASP.NET Core Identity, first changing it up so that the data-type for the Id fields in Integer rather than a stringified GUID and then separating out the …
-
Running Redis on Ubuntu on Windows
Whilst there's a Windows port of Redis server, the last stable release that was produced was 3.0.504 in July 2016. There's plenty of options for running later versions of Redis as a Windows …
-
Edge not working for you in Windows 10 (1809)? Try Fiddler
If you've upgraded to the latest version of Windows 10 (1809) and are having problems browsing the web, try running Fiddler. Having this sat between the interweb and Edge seemed to kick it straight …
-
Using the #if pre-processor directive to do different things for x64 builds
I'd just about finished writing an answer for a question on Stack Overflow when the poster deleted it, so I thought I'd drop the answer here instead.
The question asked was essentially:
How can I …
-
Charging a completely flat Surface Pro 3
A very short one - if you've got a Surface Pro 3 (and this may well apply to other Surfaces) and the battery is totally flat, charging it from a Surface Dock may not work.
If you see the light on …
-
Splitting out ASP.NET Core Identity into a separate library
In a recent post I described how to change the data type that ASP.NET Core Identity uses for the generated id's for users. Before I go much further I want to split this out into a separate library, …
-
A brief look at the Windows Admin Center (1809)
A few days ago I happened to look at the list of recently installed updates in the Settings app and noticed that I'd received an update for Windows Admin Center 1809 which reminded me that I'd …
-
Wrapping ConcurrentQueue<T> to make it eventful
One of the projects I inherited has been merrily sat on its server bubbling away and doing what it needs to do since before I joined the company until a few days ago when another service on the …
-
Taking the GUID out of ASP.NET Core Identity
I've been working on an ASP.NET Core web project using the built-in ASP.NET Core Identity solution. All the project scaffolding was done by choosing to create a new ASP.NET Core Web Application, …