diff options
author | Wouter Tinus <wouter.tinus@gmail.com> | 2020-04-19 20:21:40 +0200 |
---|---|---|
committer | Wouter Tinus <wouter.tinus@gmail.com> | 2020-04-19 20:21:40 +0200 |
commit | c0526f1808dd99c794a3741d7af1cc93c4fe2d78 (patch) | |
tree | 1b380e6bd69e72ea9392afd7a71aeb635d13a7a3 /src/main.lib/Services/Interfaces/IPluginService.cs | |
parent | 70ed98737fd03e4112d61b19690c40063e57eaf6 (diff) | |
download | letsencrypt-win-simple-c0526f1808dd99c794a3741d7af1cc93c4fe2d78.zip letsencrypt-win-simple-c0526f1808dd99c794a3741d7af1cc93c4fe2d78.tar.gz letsencrypt-win-simple-c0526f1808dd99c794a3741d7af1cc93c4fe2d78.tar.bz2 |
refactor unattended resolver and pluginservice
Diffstat (limited to 'src/main.lib/Services/Interfaces/IPluginService.cs')
-rw-r--r-- | src/main.lib/Services/Interfaces/IPluginService.cs | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/main.lib/Services/Interfaces/IPluginService.cs b/src/main.lib/Services/Interfaces/IPluginService.cs index 02a4793..4ef77b4 100644 --- a/src/main.lib/Services/Interfaces/IPluginService.cs +++ b/src/main.lib/Services/Interfaces/IPluginService.cs @@ -8,21 +8,9 @@ namespace PKISharp.WACS.Services { public interface IPluginService { - List<ITargetPluginOptionsFactory> TargetPluginFactories(ILifetimeScope scope); - List<IValidationPluginOptionsFactory> ValidationPluginFactories(ILifetimeScope scope); - List<IOrderPluginOptionsFactory> OrderPluginFactories(ILifetimeScope scope); - List<ICsrPluginOptionsFactory> CsrPluginOptionsFactories(ILifetimeScope scope); - List<IStorePluginOptionsFactory> StorePluginFactories(ILifetimeScope scope); - List<IInstallationPluginOptionsFactory> InstallationPluginFactories(ILifetimeScope scope); - - ITargetPluginOptionsFactory TargetPluginFactory(ILifetimeScope scope, string name); - IValidationPluginOptionsFactory ValidationPluginFactory(ILifetimeScope scope, string type, string name); - IOrderPluginOptionsFactory OrderPluginFactory(ILifetimeScope scope, string name); - ICsrPluginOptionsFactory CsrPluginFactory(ILifetimeScope scope, string name); - IStorePluginOptionsFactory StorePluginFactory(ILifetimeScope scope, string name); - IInstallationPluginOptionsFactory InstallationPluginFactory(ILifetimeScope scope, string name); - - List<IArgumentsProvider> OptionProviders(); - List<Type> PluginOptionTypes<T>() where T : PluginOptions; + IEnumerable<T> GetFactories<T>(ILifetimeScope scope) where T: IPluginOptionsFactory; + T GetFactory<T>(ILifetimeScope scope, string name, string? parameter = null) where T : IPluginOptionsFactory; + IEnumerable<IArgumentsProvider> ArgumentsProviders(); + IEnumerable<Type> PluginOptionTypes<T>() where T : PluginOptions; } } |