Manage JSON Web Tokens in development with dotnet user-jwts
.NET
C#
specific: Configure Windows Authentication in ASP.NET Core
Surprisingly enough of this is about code security: When should I use Lazy?
Replaces:
get { if (foo == null) foo = new Foo(); return foo; }
.Note that
get { if (foo == null) foo = new Foo(); return foo; }
is not thread-safe,while Lazy<T>
is thread-safe by defaultREMEMBER: Lazy initialization is thread-safe, but it doesn't protect the object after creation. You must lock the object before accessing it, unless the type is thread safe