# BatchContainerBatch.ImportRequestContext

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.batchcontainerbatch/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.batchcontainerbatch/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueAdapters/BatchContainerBatch.cs#L58)

```csharp
public bool ImportRequestContext()
```

Gives an opportunity to [IBatchContainer](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.ibatchcontainer/) to set any data in the [RequestContext](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.requestcontext/) before this [IBatchContainer](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.ibatchcontainer/) is sent to consumers. It can be the data that was set at the time event was generated and enqueued into the persistent provider or any other data.

### Returns

`true` if the [RequestContext](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.requestcontext/) was indeed modified, `false` otherwise.
