/// <summary> /// Create a runbook schedule link. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/XXXXXXX.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IRunbookOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='parameters'> /// Required. The parameters supplied to the create runbook schedule /// link operation. /// </param> /// <returns> /// The response model for the create runbook schedule link operation. /// </returns> public static Task <RunbookCreateScheduleLinkResponse> CreateScheduleLinkAsync(this IRunbookOperations operations, string automationAccount, RunbookCreateScheduleLinkParameters parameters) { return(operations.CreateScheduleLinkAsync(automationAccount, parameters, CancellationToken.None)); }
/// <summary> /// Create a runbook schedule link. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/XXXXXXX.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IRunbookOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='parameters'> /// Required. The parameters supplied to the create runbook schedule /// link operation. /// </param> /// <returns> /// The response model for the create runbook schedule link operation. /// </returns> public static RunbookCreateScheduleLinkResponse CreateScheduleLink(this IRunbookOperations operations, string automationAccount, RunbookCreateScheduleLinkParameters parameters) { return(Task.Factory.StartNew((object s) => { return ((IRunbookOperations)s).CreateScheduleLinkAsync(automationAccount, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }