# JournalStorageProviderAttribute Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.journalstorageproviderattribute/)

## Populate(IServiceProvider, Type, GrainType, Dictionary&lt;string, string&gt;) {#populate-system-iserviceprovider-system-type-orleans-runtime-graintype-system-co-80ae2ffb}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.journalstorageproviderattribute/methods/populate-system-iserviceprovider-system-type-orleans-runtime-graintype-system-co-80ae2ffb/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/Journaling/JournalStorageProviderAttribute.cs#L32-L39)

```csharp
public void Populate(IServiceProvider services, Type grainClass, GrainType grainType, Dictionary<string, string> properties)
```

Adds grain properties to `properties`.

### Parameters

- `services` (`IServiceProvider`): The service provider.
- `grainClass` (`Type`): The grain class.
- `grainType` (`GrainType`): The grain type id.
- `properties` (`Dictionary<string, string>`): The properties collection which calls to this method should populate.

### Exceptions

- `Orleans.Runtime.OrleansConfigurationException`: The provider name is null, empty, or whitespace.
