damienbod / bff-aspnetcore-angular

Backend for frontend security using Angular Standalone (nx) and ASP.NET Core backend
https://damienbod.com/2023/09/11/implement-a-secure-web-application-using-nx-standalone-angular-and-an-asp-net-core-server/
Apache License 2.0
93 stars 17 forks source link

Use new C# lang features #22

Closed Q-Sharp closed 9 months ago

Q-Sharp commented 9 months ago

Use new C# lang features:

global usings collection expressions primary constructors


Should this only be set in development env?

IdentityModelEventSource.ShowPII = true;

Just tell me if I should revert this.

Greetings

damienbod commented 9 months ago

Thanks @Q-Sharp

I am unsure about this feature :)

I like the underscore for class members and the class injection removes the readonly

Greetings Damien

Q-Sharp commented 9 months ago

Okay I can understand that. I like the underscore too, but writing less code is nice too.

Nevertheless I reverted the use of primary constructors