Example #1
0
        public async Task Handle(NotificationCompleted message)
        {
            _logger.LogInformation(
                "Case number {caseNumber} estimation successfully notified.",
                message.CaseNumber);

            Data.State = EstimationStates.ClientNotified;

            await _bus.Send(new EstimationStateChanged
            {
                CaseNumber = Data.CaseNumber,
                State      = Data.State
            });

            MarkAsComplete();
            await CleanupDataBus();
        }
Example #2
0
        public void FadeOut()
        {
            var fadeOut = new DoubleAnimation(PopupOpacity, 0, TimeSpan.FromMilliseconds(_fadeOut));

            fadeOut.Completed += (sender, args) => { Visibility = Visibility.Collapsed; NotificationCompleted?.Invoke(this, null); };

            this.BeginAnimation(OpacityProperty, fadeOut);
        }