using System; using System.Collections.Generic; namespace StgSharp.UserInterface { public abstract record ServiceLoadCommand { protected ServiceLoadCommand( string serviceName ) { ServiceName = string.IsNullOrWhiteSpace(serviceName) ? throw new ArgumentException("Value cannot be null or whitespace.", nameof(serviceName)) : serviceName; } public IReadOnlyDictionary Parameters { get; init; } = new Dictionary(StringComparer.Ordinal); public string ServiceName { get; init; } } }