/// <summary>Snippet for InstantiateInlineWorkflowTemplateAsync</summary> public async Task InstantiateInlineWorkflowTemplateAsync_RequestObject() { // Snippet: InstantiateInlineWorkflowTemplateAsync(InstantiateInlineWorkflowTemplateRequest,CallSettings) // Create client WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync(); // Initialize request argument(s) InstantiateInlineWorkflowTemplateRequest request = new InstantiateInlineWorkflowTemplateRequest { ParentAsRegionName = new RegionName("[PROJECT]", "[REGION]"), Template = new WorkflowTemplate(), }; // Make the request Operation <Empty, WorkflowMetadata> response = await workflowTemplateServiceClient.InstantiateInlineWorkflowTemplateAsync(request); // Poll until the returned long-running operation is complete Operation <Empty, WorkflowMetadata> completedResponse = await response.PollUntilCompletedAsync(); // The long-running operation is now complete. // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Empty, WorkflowMetadata> retrievedResponse = await workflowTemplateServiceClient.PollOnceInstantiateInlineWorkflowTemplateAsync(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // The long-running operation is now complete. } // End snippet }