# IBatchContainer Methods

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

## GetEvents {#getevents-1-93471a7f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.ibatchcontainer/methods/getevents-1-93471a7f/)

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

Gets events of a specific type from the batch.

## ImportRequestContext {#importrequestcontext-e239d9f6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.ibatchcontainer/methods/importrequestcontext-e239d9f6/)

```csharp
public abstract 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.
