Condividi tramite


EventGridModelFactory.MediaJobFinishedEventData Method

Definition

Initializes a new instance of MediaJobFinishedEventData.

public static Azure.Messaging.EventGrid.SystemEvents.MediaJobFinishedEventData MediaJobFinishedEventData (Azure.Messaging.EventGrid.SystemEvents.MediaJobState? previousState = default, Azure.Messaging.EventGrid.SystemEvents.MediaJobState? state = default, System.Collections.Generic.IReadOnlyDictionary<string,string> correlationData = default, System.Collections.Generic.IEnumerable<Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput> outputs = default);
static member MediaJobFinishedEventData : Nullable<Azure.Messaging.EventGrid.SystemEvents.MediaJobState> * Nullable<Azure.Messaging.EventGrid.SystemEvents.MediaJobState> * System.Collections.Generic.IReadOnlyDictionary<string, string> * seq<Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput> -> Azure.Messaging.EventGrid.SystemEvents.MediaJobFinishedEventData
Public Shared Function MediaJobFinishedEventData (Optional previousState As Nullable(Of MediaJobState) = Nothing, Optional state As Nullable(Of MediaJobState) = Nothing, Optional correlationData As IReadOnlyDictionary(Of String, String) = Nothing, Optional outputs As IEnumerable(Of MediaJobOutput) = Nothing) As MediaJobFinishedEventData

Parameters

previousState
Nullable<MediaJobState>

The previous state of the Job.

state
Nullable<MediaJobState>

The new state of the Job.

correlationData
IReadOnlyDictionary<String,String>

Gets the Job correlation data.

outputs
IEnumerable<MediaJobOutput>

Gets the Job outputs. Please note MediaJobOutput is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include MediaJobOutputAsset.

Returns

A new MediaJobFinishedEventData instance for mocking.

Applies to