DDilipinngeninv.hashnode.dev·Sep 4, 2023 · 1 min readRough Notes on .NETDependency Injection DI through interfaces, through constructor, by method with [FromService], in razor pages with @inject in the middleware. Service lifetime Singleton (a single instance) static Scoped (for that particular session/Http Context)...00
DDilipinngeninv.hashnode.dev·Aug 19, 2023 · 1 min readWeb Page PerformanceFPFirst Paint FCPFirst Contentful Paint LCPLargest Contentful Paint CLSCumulative Layout Shift TTITime To Interactive TBTTotal Blocking Time INPInteraction to Next Paint FIDFirst Input Delay FP: The first time pixels start to become visib...00
DDilipinngeninv.hashnode.dev·Mar 26, 2022 · 1 min readGit Commands$ git --version git version 2.35.1.windows.2 $ git init test-project $ git config --global init.defaultBranch main $ ls -al $ git status $ git add . $ git add hello.txt $ git rm --cached hello.txt $ git commit -m "adding hello.txt" $ git log $ git ...00
DDilipinngeninv.hashnode.dev·Mar 19, 2022 · 1 min readASP.NET CoreMiddleware app.UseMiddleware app.Map app.Run app.Use app.MapWhen app.UseWhen Dependency Injection namespace Microsoft.Extensions.DependencyInjection { // // Summary: // Specifies the contract for a collection of service descriptor...00
DDilipinngeninv.hashnode.dev·Dec 30, 2021 · 1 min read12 Factor AppCodebase : One codebase tracked in revision control, many deploys Dependencies: Explicitly declare and isolate dependencies Configuration: Store configuration in the environment Backing Services: Treat backing services as attached resources Build...00