< Summary

Information
Class: SwitchBlade.Services.WindowListUpdatedEventArgs
Assembly: SwitchBlade
File(s): D:\a\switchblade\switchblade\Services\IWindowOrchestrationService.cs
Tag: 203_23722840422
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 38
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_Provider()100%11100%
get_IsStructuralChange()100%11100%

File(s)

D:\a\switchblade\switchblade\Services\IWindowOrchestrationService.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Threading.Tasks;
 4using SwitchBlade.Contracts;
 5
 6namespace SwitchBlade.Services
 7{
 8    /// <summary>
 9    /// Coordinates parallel execution of window providers and manages the master window list.
 10    /// </summary>
 11    public interface IWindowOrchestrationService : IDiagnosticsProvider
 12    {
 13        /// <summary>
 14        /// Event raised when the window list has been updated.
 15        /// </summary>
 16        event EventHandler<WindowListUpdatedEventArgs>? WindowListUpdated;
 17
 18        /// <summary>
 19        /// Refreshes windows from all enabled providers in parallel.
 20        /// </summary>
 21        /// <param name="disabledPlugins">Set of disabled plugin names.</param>
 22        Task RefreshAsync(IEnumerable<string> disabledPlugins);
 23
 24        /// <summary>
 25        /// Gets the current master list of all windows.
 26        /// </summary>
 27        IReadOnlyList<WindowItem> AllWindows { get; }
 28    }
 29
 30    /// <summary>
 31    /// Event args for window list updates.
 32    /// </summary>
 10533    public class WindowListUpdatedEventArgs(IWindowProvider provider, bool isStructuralChange) : EventArgs
 34    {
 10635        public IWindowProvider Provider { get; } = provider;
 10636        public bool IsStructuralChange { get; } = isStructuralChange;
 37    }
 38}