Skip to content

Commit

Permalink
Filter EndUpdate event subscriptions for the same Session
Browse files Browse the repository at this point in the history
  • Loading branch information
mserra-github committed Nov 20, 2023
1 parent c539d38 commit ecc5448
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// <copyright file="ApplicationBaseViewModel.cs" company="RHEA System S.A.">
// Copyright (c) 2023 RHEA System S.A.
//
// Authors: Sam Gerené, Alex Vorobiev, Alexander van Delft, Jaime Bernar, Théate Antoine
// Authors: Sam Gerené, Alex Vorobiev, Alexander van Delft, Jaime Bernar, Théate Antoine, Miguel Serra
//
// This file is part of COMET WEB Community Edition
// The COMET WEB Community Edition is the RHEA Web Application implementation of ECSS-E-TM-10-25
Expand Down Expand Up @@ -53,7 +53,7 @@ public abstract class ApplicationBaseViewModel : HaveObjectChangedTracking, IApp
protected ApplicationBaseViewModel(ISessionService sessionService)
{
this.Disposables.Add(CDPMessageBus.Current.Listen<SessionEvent>()
.Where(x => x.Status == SessionStatus.EndUpdate)
.Where(x => x.Session == this.SessionService.Session && x.Status == SessionStatus.EndUpdate)
.SubscribeAsync(_ => this.OnSessionRefreshed()));

this.SessionService = sessionService;
Expand Down

0 comments on commit ecc5448

Please sign in to comment.