# IMembershipTable.InitializeMembershipTableAsync(bool, CancellationToken)

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

[Source](https://github.com/dotnet/orleans/blob/8bc9fd244427351ad24ccc039a9e7642a42c1cc4/src/Orleans.Core/SystemTargetInterfaces/IMembershipTable.cs#L40-L46)

```csharp
[Orleans.Alias(FB89E5E9)]
public virtual Task InitializeMembershipTableAsync(bool tryInitTableVersion, CancellationToken cancellationToken = default(CancellationToken))
```

Initializes the membership table, will be called before all other methods

### Parameters

- `tryInitTableVersion` (`bool`): Whether to initialize the underlying table version.
- `cancellationToken` (`CancellationToken`): A token which cancels the operation.

### Returns

A task representing the initialization operation.
