# IDurableJobsStorageInspector Methods

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

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.jobs.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.
