# InMemoryLeaseProvider Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.development.inmemoryleaseprovider/)

## InMemoryLeaseProvider(IGrainFactory) {#constructor-orleans-igrainfactory-5aafea30}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.development.inmemoryleaseprovider/constructors/constructor-orleans-igrainfactory-5aafea30/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/Development/InMemoryLeaseProvider.cs#L24-L27)

```csharp
public InMemoryLeaseProvider(IGrainFactory grainFactory)
```

Initializes a new instance of the [InMemoryLeaseProvider](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.development.inmemoryleaseprovider/) class.

### Parameters

- `grainFactory` (`IGrainFactory`): The grain factory.
