EventHubBatchContainer.ToEventData<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Put events list and its context into a EventData object
public static Azure.Messaging.EventHubs.EventData ToEventData<T> (Orleans.Serialization.Serializer bodySerializer, Orleans.Runtime.StreamId streamId, System.Collections.Generic.IEnumerable<T> events, System.Collections.Generic.Dictionary<string,object> requestContext);
static member ToEventData : Orleans.Serialization.Serializer * Orleans.Runtime.StreamId * seq<'T> * System.Collections.Generic.Dictionary<string, obj> -> Azure.Messaging.EventHubs.EventData
Public Shared Function ToEventData(Of T) (bodySerializer As Serializer, streamId As StreamId, events As IEnumerable(Of T), requestContext As Dictionary(Of String, Object)) As EventData
Type Parameters
- T
Parameters
- bodySerializer
- Serializer
- streamId
- StreamId
- events
- IEnumerable<T>
- requestContext
- Dictionary<String,Object>