# IdentityManager

**Kind:** Service

**Source:** `Pams/API/Pams.API/Pams.API.csproj` (line 1)

**Part of:** [Pams](subsystem-pams)

NuGet package dependency

IdentityManager is recorded as a NuGet package dependency for `Pams.API` in `Pams/API/Pams.API/Pams.API.csproj`. The package is restored with the project’s NuGet dependencies and is available to the API at build time.

## Diagram

```mermaid
sequenceDiagram
    participant Developer
    participant Project as Pams.API.csproj
    participant NuGet
    participant IdentityManager

    Developer->>Project: Run dotnet restore
    Project->>NuGet: Resolve IdentityManager package
    NuGet-->>Project: Return package assets
    Project->>IdentityManager: Reference resolved assembly
```

## Usage

```ts
import { execFileSync } from "node:child_process";

const projectFile = "Pams/API/Pams.API/Pams.API.csproj";

execFileSync("dotnet", ["restore", projectFile], {
  stdio: "inherit",
});

execFileSync("dotnet", ["build", projectFile], {
  stdio: "inherit",
});
```

## AI Coding Instructions

- Keep the `IdentityManager` NuGet reference in the existing dependency format used by `Pams.API.csproj`.
- Run `dotnet restore` after changing package references or dependency sources.
- Treat IdentityManager as a .NET build dependency; do not add JavaScript or TypeScript imports for it.
- Check package restore output when builds fail due to missing or unresolved dependencies.

## 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.API` — `Pams/API/Pams.API/Pams.API.csproj`:1
