# TimeProviderNames

Package: [Microsoft.Orleans.Core](/orleans/docs/api/csharp/microsoft.orleans.core/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Core)

```csharp
public static class TimeProviderNames
```

Service keys used to resolve per-area `System.TimeProvider` instances from dependency injection for the areas owned by the Orleans core runtime. Individual extension packages (reminders, streaming, transactions, durable jobs, journaling, and similar) define their own keys in the corresponding package.

## Remarks

Orleans resolves time from a single default `System.TimeProvider` registration. To allow individual subsystems to be driven by different clocks, each area also resolves a keyed`System.TimeProvider` using one of these keys. A catch-all `Microsoft.Extensions.DependencyInjection.KeyedService.AnyKey` registration resolves every key to the unkeyed default provider, so behavior is unchanged unless a specific area is overridden.

This is primarily useful for testing: a test can install a controllable clock (such as `Microsoft.Extensions.Time.Testing.FakeTimeProvider`) as the default provider to drive grain timers and grain-facing delays deterministically, while pinning the silo''s background maintenance timers to real time so that advancing the fake clock does not resume those loops inline.

## Fields

- [ActivationManagement](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.timeprovidernames/fields/activationmanagement-9508652d/)
- [GrainDirectory](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.timeprovidernames/fields/graindirectory-2b4920fc/)
- [Grains](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.timeprovidernames/fields/grains-5a2c9b36/)
- [Membership](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.timeprovidernames/fields/membership-2dad5ce2/)
- [Messaging](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.timeprovidernames/fields/messaging-608ae956/)
- [SystemTimers](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.timeprovidernames/fields/systemtimers-fc6996a5/)
