public static async Task Trigger([QueueTrigger(Constant.Storage.Blob.WorkflowContainerName)] EventGridEvent queueMessage, [Blob(Constant.Storage.Blob.WorkflowManifestPath, FileAccess.Read)] Stream manifestInput, [OrchestrationClient] DurableOrchestrationClient client) { if (InputComplete(queueMessage, manifestInput, out MediaWorkflowManifest workflowManifest)) { MediaClient mediaClient = new MediaClient(workflowManifest); EventGridClient.SetMediaSubscription(mediaClient.MediaAccount); ValueTuple <EventGridEvent, MediaWorkflowManifest> workflowInput = (queueMessage, workflowManifest); await client.StartNewAsync("MediaWorkflow", workflowInput); } }