# ICallChainReentrantGrainContext Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.core.internal.icallchainreentrantgraincontext/)

## OnEnterReentrantSection(Guid) {#onenterreentrantsection-system-guid-284f825c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.core.internal.icallchainreentrantgraincontext/methods/onenterreentrantsection-system-guid-284f825c/)

```csharp
public abstract void OnEnterReentrantSection(Guid reentrancyId)
```

Marks the beginning of a section of code within a grain during which requests bearing the same [RequestContext](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.requestcontext/) are allowed to re-enter the grain.

### Parameters

- `reentrancyId` (`Guid`)

## OnExitReentrantSection(Guid) {#onexitreentrantsection-system-guid-1a351ace}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.core.internal.icallchainreentrantgraincontext/methods/onexitreentrantsection-system-guid-1a351ace/)

```csharp
public abstract void OnExitReentrantSection(Guid reentrancyId)
```

Marks the end of a section of code within a grain during which requests bearing the same [RequestContext](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.requestcontext/) are allowed to re-enter the grain.

### Parameters

- `reentrancyId` (`Guid`)
