/// <summary> /// Returns the user lockout end date /// </summary> /// <param name="manager"></param> /// <param name="userId"></param> /// <returns></returns> public static DateTimeOffset GetLockoutEndDate <TUser, TKey>(this UserManager <TUser, TKey> manager, TKey userId) where TKey : IEquatable <TKey> where TUser : class, IUser <TKey> { if (manager == null) { throw new ArgumentNullException("manager"); } return(AsyncHelper.RunSync(() => manager.GetLockoutEndDateAsync(userId))); }