using System.Collections.Generic;
using Abp.Threading;
namespace Abp.Notifications
{
///
/// Extension methods for .
///
public static class NotificationDefinitionManagerExtensions
{
///
/// Gets all available notification definitions for given user.
///
/// Notification definition manager
/// User
public static IReadOnlyList GetAllAvailable(this INotificationDefinitionManager notificationDefinitionManager, UserIdentifier user)
{
return AsyncHelper.RunSync(() => notificationDefinitionManager.GetAllAvailableAsync(user));
}
}
}