Kind: Service
Source: Pams/Web/Pams.Web/Pams.Web.csproj (line 1)
Part of: Pams
NuGet package dependency
Microsoft.AspNetCore is a NuGet package dependency declared by the Pams.Web SDK-style project. It supplies ASP.NET Core framework references used to build and host the web application, including HTTP request handling and endpoint integration.
Diagram
mermaidsequenceDiagram participant Client participant PamsWeb as Pams.Web participant AspNetCore as Microsoft.AspNetCore Client->>PamsWeb: Send HTTP request PamsWeb->>AspNetCore: Process request through ASP.NET Core pipeline AspNetCore-->>PamsWeb: Invoke configured endpoint PamsWeb-->>Client: Return HTTP response
Usage
tsasync function loadPamsData() {
const response = await fetch("/api/pams");
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
return response.json();
}
loadPamsData().then((data) => {
console.log(data);
});
AI Coding Instructions
- Keep ASP.NET Core package references in
Pams.Web.csprojaligned with the project target framework. - Add server routes, middleware, and dependency injection registrations in the web project rather than in client-side code.
- Treat API paths such as
/api/pamsas contracts between JavaScript clients and ASP.NET Core endpoints. - Check package compatibility before adding ASP.NET Core dependencies that target a different framework version.
Used by
1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.
Injected or called by (1)
Pams.Web—Pams/Web/Pams.Web/Pams.Web.csproj:1
Was this page helpful?