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();
 }
 private void AcceptStatus(StatusModelNotification n)
 {
     if (n.IsAdded && n.StatusModel != null && CheckAcceptStatus(n.StatusModel.Status))
     {
         AddStatus(n.StatusModel, n.IsNew);
     }
     else
     {
         RemoveStatus(n.StatusId);
     }
 }
 private void AcceptStatus(StatusModelNotification n)
 {
     if (n.IsAdded && this.CheckAcceptStatus(n.StatusModel.Status))
     {
         this.AddStatus(n.StatusModel, true);
     }
     else
     {
         this.RemoveStatus(n.StatusId);
     }
 }