FromStatusNotification() public static méthode

public static FromStatusNotification ( StatusNotification notification, bool isNew ) : Task
notification StatusNotification
isNew bool
Résultat Task
Exemple #1
0
 internal static async void Enqueue([NotNull] StatusNotification status)
 {
     if (status == null)
     {
         throw new ArgumentNullException("status");
     }
     _queue.Enqueue(await StatusModelNotification.FromStatusNotification(status, true));
     _signal.Set();
 }
Exemple #2
0
 internal static async void Enqueue([CanBeNull] StatusNotification status)
 {
     if (status == null)
     {
         throw new ArgumentNullException(nameof(status));
     }
     _queue.Enqueue(await StatusModelNotification.FromStatusNotification(status, true).ConfigureAwait(false));
     _signal.Set();
 }