/// <summary> /// Schedules a new run based on the request parameters and add it to the run /// queue. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='runRequest'> /// The parameters of a run that needs to scheduled. /// </param> public static Run ScheduleRun(this IRegistriesOperations operations, string resourceGroupName, string registryName, RunRequest runRequest) { return(operations.ScheduleRunAsync(resourceGroupName, registryName, runRequest).GetAwaiter().GetResult()); }