using System; using JD.Shotgun.Service; using JD.Shotgun.WPF.Settings; using Plume.Interfaces.Application; using Plume.Interfaces.Modules; using Plume.Interfaces.WPF.Modules; namespace JD.Shotgun.WPF { [NeededService(ServiceType = typeof(IShotgunService))] public class ShotgunModule : IWpfModule { /// public void Dispose() { } /// public void Setup(IModuleSetup setup) { } /// public void Initialize(IWpfModuleContext context) { var shotgunService = context.ServiceManager.Get(); if (shotgunService == null) { throw new ArgumentException($"Unable to find a valid {nameof(IShotgunService)}."); } context.SettingsManager.Register("Shotgun"); } } }