Microsoft MVP and blogger, focused on ASP.​NET Core. Author of ASP.​NET Core in Action: https://xitter.cf/t.co/GTRJ4hBm9s @andrewlock@hachyderm.io @andrewlock.bsky.social

Plymouth, England
Joined May 2016
Blogged: An introduction to Compact Binary Object Notation (CBOR) in .NET andrewlock.net/an-introducti… In this post I introduce CBOR as a JSON alternative, and show how to use the System.Formats.Cbor NuGet package to read and write CBOR encoded data #dotnet #aspnetcore
6
19
125
6,948
Stripping extra dependencies in .NET NativeAOT apps using linker substitutions andrewlock.net/stripping-ext… In this post I describe how to perform method substitutions with the NativeAOT linker to remove additional dependencies that the linker couldn't see were unused #dotnet
3
9
39
2,641
Andrew Lock "Sock" retweeted
Experimental support for Device Bound Session Credentials (DBSC) in ASP .NET Core: Exploring the .NET 11 preview - Part 8 by @andrewlocknet andrewlock.net/exploring-the… #aspnetcore
1
14
1,619
Understanding Device Bound Session Credentials (DBSC) andrewlock.net/understanding… In this post I provide an introduction to Device Bound Session Credentials, I look at how DBSC protects against session hijacking, and how the protocol works. #security #dotnet
1
7
22
1,883
Blogged: The pain of serializing unions and closed class hierarchies with System.Text.Json in .NET 11 andrewlock.net/exploring-the… In this post I discuss the Json support for unions and closed hierarchies coming in .NET 11, the decisions made, and some of the sharp edges #dotnet
3
19
117
7,079
Blogged: Finding the total number of processors on a machine with .NET andrewlock.net/finding-the-t… In this post I show how to find the total number of logical CPUs on a host (not just those available to a process); something that isn't exposed in modern .NET #dotnet
2
6
34
2,599
3 days and @nuget still hasn't validated 4 of our packages, or responded to a customer support request... Is there anyone left there? Should someone go check on them? Or is this the brave new AI future? 🤷‍♂️
3
3
42
6,764
Andrew Lock "Sock" retweeted
Ever noticed headers like Sec-Fetch-Site and wondered what they're actually for? 👀 @andrewlocknet breaks down the Fetch Metadata headers, when browsers send them, & why devs should care. Have a look. 👇 prgress.co/4yTKOcl
2
2
1,228
Andrew Lock "Sock" retweeted
Automatic CSRF protection based on Fetch Metadata headers: Exploring the .NET 11 preview - Part 6 by @andrewlocknet andrewlock.net/exploring-the… #aspnetcore
4
12
1,594
Andrew Lock "Sock" retweeted
I would really appreciate a retweet! My current contract will be coming to an end in a month or two. I'm therefore starting to look around for my next opportunity, whether that's remote contract work or a permanent role. I'm the author of Blazor-University.com, Fluxor, Roslynk, and some other things. linkedin.com/in/peter-morris… github.com/mrpmorris/
2
22
3
22
2,584
Andrew Lock "Sock" retweeted
Understanding the Fetch Metadata HTTP headers: Sec-Fetch-Site and friends by @andrewlocknet andrewlock.net/understanding… #aspnetcore
4
13
1,778
Blogged: Automatic CSRF protection based on Fetch Metadata headers - Exploring the .NET 11 preview andrewlock.net/exploring-the… In this post I describe the new Cross-Site Request Forgery protection added to aspnetcore that relies on HTTP headers, not tokens #aspnetcore #security
1
6
20
1,619