# IDurableJobsStorageInspector Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durablejobs/orleans.durablejobs.idurablejobsstorageinspector/)

## InspectAsync(string, CancellationToken) {#inspectasync-string-system-threading-cancellationtoken-36505a77}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durablejobs/orleans.durablejobs.idurablejobsstorageinspector/methods/inspectasync-string-system-threading-cancellationtoken-36505a77/)

```csharp
public abstract ValueTask<DurableJobsStorageStatus> InspectAsync(string providerName, CancellationToken cancellationToken = default(CancellationToken))
```

Counts existing shards, including future-dated and poisoned shards, without changing ownership.

### Parameters

- `providerName` (`string`): The selected write or draining journal provider name.
- `cancellationToken` (`CancellationToken`): The cancellation token.

### Returns

The provider inventory.
