Professional Development – 2023 – Week 34

Image Credit: https://www.flickr.com/photos/54585499@N04/

.NET

Background Tasks Are Finally Fixed in .NET 8 (via Nick Chapsas)

  • There is now a builder.Services.Configure<HostOptions> with option of ServicesStartConcurrently so you don’t synchronously block the startup services.
  • There’s also a IHostedLifecycleService which gives you Started/Starting/Stopped/StoppingAsync methods.

The .NET 8 Auth Changes You Must Know About! (via Nick Chapsas)

  • .Services.AddAuthentication() and .Services.AddAuthorizationBuilder()
  • This video uses Entity Framework over SqlLite.
  • Inherit from IdentityUser and have the context inherit from IdentityDbContent<youruserclass>
  • Then use .Services.AddDbContext() and .Services.AddIdentityCore<youruserclass>().AddEntityFrameworkStores<AppDbContext>().AddApiEndPoints(). Lastly do app.MapIdentityApi<youruserclass>().
  • You get lots of user management endpoints (e.g., reset password) by default.

AI

Streamlining Your Work with Microsoft Bing Chat (via LinkedIn Learning)

This course is for you if you have absolutely no idea what ChatGPT does and you want a Microsoft-centric solution.