# IGrainContextActivator.CreateContext(GrainAddress, IConfigureGrainContext[])

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.igraincontextactivator/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.igraincontextactivator/methods/)

```csharp
public abstract IGrainContext CreateContext(GrainAddress address, IConfigureGrainContext[] configureActions)
```

Creates a grain context for the given grain address.

### Parameters

- `address` (`GrainAddress`): The grain address.
- `configureActions` (`IConfigureGrainContext[]`): The actions which must be used to configure the context before grain construction begins.

### Returns

The newly created grain context.
