/// <summary> /// Your documentation here. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/XXXXX.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.AzureStack.Management.IResourceOperations. /// </param> /// <param name='resourceGroupName'> /// Required. Your documentation here. /// </param> /// <param name='resourceProviderNamespace'> /// Required. Your documentation here. /// </param> /// <param name='fqResourceName'> /// Required. Your documentation here. /// </param> /// <param name='action'> /// Required. Your documentation here. /// </param> /// <param name='parameters'> /// Required. Your documentation here. /// </param> /// <returns> /// Your documentation here. /// </returns> public static ResourceActionResult Action(this IResourceOperations operations, string resourceGroupName, string resourceProviderNamespace, string fqResourceName, string action, ResourceActionParameters parameters) { return Task.Factory.StartNew((object s) => { return ((IResourceOperations)s).ActionAsync(resourceGroupName, resourceProviderNamespace, fqResourceName, action, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <summary> /// Your documentation here. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/XXXXX.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.AzureStack.Management.IResourceOperations. /// </param> /// <param name='resourceGroupName'> /// Required. Your documentation here. /// </param> /// <param name='resourceProviderNamespace'> /// Required. Your documentation here. /// </param> /// <param name='fqResourceName'> /// Required. Your documentation here. /// </param> /// <param name='action'> /// Required. Your documentation here. /// </param> /// <param name='parameters'> /// Required. Your documentation here. /// </param> /// <returns> /// Your documentation here. /// </returns> public static Task<ResourceActionResult> ActionAsync(this IResourceOperations operations, string resourceGroupName, string resourceProviderNamespace, string fqResourceName, string action, ResourceActionParameters parameters) { return operations.ActionAsync(resourceGroupName, resourceProviderNamespace, fqResourceName, action, parameters, CancellationToken.None); }