# IGrainRuntime

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

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Core.Abstractions) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/Runtime/IGrainRuntime.cs#L10)

```csharp
public interface IGrainRuntime
```

The gateway of the [Grain](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.grain/) to the Orleans runtime. The [Grain](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.grain/) should only interact with the runtime through this interface.

## Properties

- [GrainFactory](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.igrainruntime/properties/grainfactory-92f344a1/)
- [ServiceProvider](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.igrainruntime/properties/serviceprovider-a72927ff/)
- [SiloAddress](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.igrainruntime/properties/siloaddress-faa93596/)
- [SiloIdentity](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.igrainruntime/properties/siloidentity-a2a5c3a6/)
- [TimeProvider](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.igrainruntime/properties/timeprovider-fee72253/)
- [TimerRegistry](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.igrainruntime/properties/timerregistry-1c1f09b3/)

## Methods

- [DeactivateOnIdle(IGrainContext)](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.igrainruntime/methods/deactivateonidle-orleans-runtime-igraincontext-bcd2ef4d/)
- [DelayDeactivation(IGrainContext, TimeSpan)](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.igrainruntime/methods/delaydeactivation-orleans-runtime-igraincontext-system-timespan-702c459c/)
- [GetStorage(IGrainContext)](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.igrainruntime/methods/getstorage-1-orleans-runtime-igraincontext-a394c221/)
