# GrainDirectoryOptions.RangeLeaseDuration

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.graindirectoryoptions/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.graindirectoryoptions/properties/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Runtime/Configuration/Options/GrainDirectoryOptions.cs)

```csharp
public TimeSpan RangeLeaseDuration
```

Gets or sets the range lease duration applied after an ungraceful silo failure. This duration applies in two scenarios: 

- When a specific silo crashes ungracefully, grain lease holds prevent individual re-registration of its grains for this duration.
- When a directory partition can not acquire a snapshot from a previous owner, range lease holds prevent new registrations in that whole range for this duration.

 For a declared-dead silo, the lease begins at its estimated failure time by subtracting the configured failure-detection window from the declaration time. Set this value to `System.TimeSpan.Zero` to disable range leases.
