What is ConfigureAwait(false)?
ConfigureAwait(false) tells an await not to require resuming on the captured synchronization context. It can matter in reusable libraries, while ASP.NET Co
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 1081–1092 of 3610 questions
ConfigureAwait(false) tells an await not to require resuming on the captured synchronization context. It can matter in reusable libraries, while ASP.NET Co
Use IHttpClientFactory or a typed client to manage HttpClient instances and configuration. Set timeouts, cancellation, and resilient handling appropriate t
Retries can help with transient failures, but should be bounded, use backoff and jitter, and respect idempotency and server guidance. Modern .NET resilienc
GET is safe and idempotent by convention; PUT and DELETE are idempotent in intended effect; POST is generally not idempotent. PATCH applies partial modific
Common codes include 200 OK, 201 Created, 204 No Content, 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, 409 Conflict, 422 Unprocessable
Authentication establishes who the caller is. Authorization determines what the caller is allowed to do.
A JWT is a compact token format that can carry claims and is often signed. APIs validate signature, issuer, audience, and lifetime before trusting claims.
OAuth 2.0 is an authorization framework for delegated access. OpenID Connect adds an identity layer on top of OAuth 2.0. APIs typically validate access tok
Define authorization policies and apply them to endpoints or controllers. Policies can evaluate roles, claims, and custom requirements.
Cross-Origin Resource Sharing is a browser-enforced mechanism controlled by response headers that determines whether a web page from another origin can rea
Use development user secrets locally and a managed secret store or platform-provided secure configuration in production. Rotate credentials and restrict ac
A repository presents a collection-like interface for domain persistence and can isolate complex data access. EF Core DbContext already provides repository