# BatchContainerBatch Methods

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

## GetEvents {#getevents-1-aa395b36}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.batchcontainerbatch/methods/getevents-1-aa395b36/)

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

```csharp
public IEnumerable<Tuple<T, StreamSequenceToken>> GetEvents<T>()
```

Gets events of a specific type from the batch.

## ImportRequestContext {#importrequestcontext-47c1a68f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.batchcontainerbatch/methods/importrequestcontext-47c1a68f/)

[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.
