Exemplo n.º 1
0
 /// <summary>
 ///     Gets all subscribtions for given notification.
 ///     TODO: Can work only for single database approach!
 /// </summary>
 /// <param name="notificationSubscriptionManager">Notification subscription manager</param>
 /// <param name="notificationName">Name of the notification.</param>
 /// <param name="entityIdentifier">entity identifier</param>
 public static List <NotificationSubscription> GetSubscriptions(
     this INotificationSubscriptionManager notificationSubscriptionManager, string notificationName,
     EntityIdentifier entityIdentifier = null)
 {
     return
         (AsyncHelper.RunSync(
              () => notificationSubscriptionManager.GetSubscriptionsAsync(notificationName, entityIdentifier)));
 }