/// <summary> /// Sets the state of a workflow trigger. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='workflowName'> /// The workflow name. /// </param> /// <param name='triggerName'> /// The workflow trigger name. /// </param> /// <param name='setState'> /// The workflow trigger state. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task SetStateAsync(this IWorkflowTriggersOperations operations, string resourceGroupName, string workflowName, string triggerName, SetTriggerStateActionDefinition setState, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.SetStateWithHttpMessagesAsync(resourceGroupName, workflowName, triggerName, setState, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Sets the state of a workflow trigger. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='workflowName'> /// The workflow name. /// </param> /// <param name='triggerName'> /// The workflow trigger name. /// </param> /// <param name='setState'> /// The workflow trigger state. /// </param> public static void SetState(this IWorkflowTriggersOperations operations, string resourceGroupName, string workflowName, string triggerName, SetTriggerStateActionDefinition setState) { operations.SetStateAsync(resourceGroupName, workflowName, triggerName, setState).GetAwaiter().GetResult(); }