/// <summary> /// Get a management lock by scope. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='scope'> /// The scope for the lock. /// </param> /// <param name='lockName'> /// The name of lock. /// </param> public static ManagementLockObject GetByScope(this IManagementLocksOperations operations, string scope, string lockName) { return(operations.GetByScopeAsync(scope, lockName).GetAwaiter().GetResult()); }