# AtsContext Methods

- Package: [Aspire.TypeSystem](/reference/api/csharp/aspire.typesystem.md)
- Type: [AtsContext](/reference/api/csharp/aspire.typesystem/atscontext.md)
- Kind: `Methods`
- Members: `1`

Contains all scanned types, capabilities, and metadata from ATS assembly scanning.

## GetCategory(Type)

- Name: `GetCategory(Type)`
- Returns: [AtsTypeCategory](/reference/api/csharp/aspire.typesystem/atstypecategory.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.TypeSystem/AtsContext.cs#L110-L166)

Gets the type category for a CLR type based on scanned data. Used at runtime for marshalling.

```csharp
public sealed class AtsContext
{
    public AtsTypeCategory GetCategory(
        Type type)
    {
        // ...
    }
}
```

## Parameters

- `type` (`Type`)
  The CLR type to classify.

## Returns

[AtsTypeCategory](/reference/api/csharp/aspire.typesystem/atstypecategory.md) -- The type category.
