public static async Task <IList <Profile> > SafeListAllAsync(this IProfilesOperations operations) { try { return(await operations.ListAllAsync()); } catch { return(Array.Empty <Profile>()); } }