/// <summary>Snippet for InstantiateInlineWorkflowTemplate</summary> public void InstantiateInlineWorkflowTemplate_RequestObject() { // Snippet: InstantiateInlineWorkflowTemplate(InstantiateInlineWorkflowTemplateRequest,CallSettings) // Create client WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.Create(); // Initialize request argument(s) InstantiateInlineWorkflowTemplateRequest request = new InstantiateInlineWorkflowTemplateRequest { ParentAsRegionName = new RegionName("[PROJECT]", "[REGION]"), Template = new WorkflowTemplate(), }; // Make the request Operation <Empty, WorkflowMetadata> response = workflowTemplateServiceClient.InstantiateInlineWorkflowTemplate(request); // Poll until the returned long-running operation is complete Operation <Empty, WorkflowMetadata> completedResponse = response.PollUntilCompleted(); // 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 = workflowTemplateServiceClient.PollOnceInstantiateInlineWorkflowTemplate(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // The long-running operation is now complete. } // End snippet }