summaryrefslogtreecommitdiffstats
path: root/src/main.lib/Services/Interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.lib/Services/Interfaces')
-rw-r--r--src/main.lib/Services/Interfaces/IArgumentsProvider.cs2
-rw-r--r--src/main.lib/Services/Interfaces/IArgumentsService.cs8
-rw-r--r--src/main.lib/Services/Interfaces/IAutofacBuilder.cs2
-rw-r--r--src/main.lib/Services/Interfaces/IInputService.cs4
-rw-r--r--src/main.lib/Services/Interfaces/ILogService.cs14
-rw-r--r--src/main.lib/Services/Interfaces/IRenewalService.cs2
6 files changed, 16 insertions, 16 deletions
diff --git a/src/main.lib/Services/Interfaces/IArgumentsProvider.cs b/src/main.lib/Services/Interfaces/IArgumentsProvider.cs
index a31b71c..58c6a16 100644
--- a/src/main.lib/Services/Interfaces/IArgumentsProvider.cs
+++ b/src/main.lib/Services/Interfaces/IArgumentsProvider.cs
@@ -20,7 +20,7 @@ namespace PKISharp.WACS.Services
/// <summary>
/// Precondition to use these parameters
/// </summary>
- string Condition { get; }
+ string? Condition { get; }
/// <summary>
/// Precondition to use these parameters
diff --git a/src/main.lib/Services/Interfaces/IArgumentsService.cs b/src/main.lib/Services/Interfaces/IArgumentsService.cs
index e613119..0f5621a 100644
--- a/src/main.lib/Services/Interfaces/IArgumentsService.cs
+++ b/src/main.lib/Services/Interfaces/IArgumentsService.cs
@@ -6,12 +6,12 @@ namespace PKISharp.WACS.Services
public interface IArgumentsService
{
MainArguments MainArguments { get; }
- T? GetArguments<T>() where T : class, new();
+ T GetArguments<T>() where T : class, new();
bool Active();
bool HasFilter();
- Task<string> TryGetArgument(string providedValue, IInputService input, string what, bool secret = false);
- Task<string> TryGetArgument(string providedValue, IInputService input, string[] what, bool secret = false);
- string TryGetRequiredArgument(string optionName, string providedValue);
+ Task<string?> TryGetArgument(string? providedValue, IInputService input, string what, bool secret = false);
+ Task<string?> TryGetArgument(string? providedValue, IInputService input, string[] what, bool secret = false);
+ string TryGetRequiredArgument(string optionName, string? providedValue);
void ShowHelp();
void ShowCommandLine();
}
diff --git a/src/main.lib/Services/Interfaces/IAutofacBuilder.cs b/src/main.lib/Services/Interfaces/IAutofacBuilder.cs
index c2a3893..2401cfe 100644
--- a/src/main.lib/Services/Interfaces/IAutofacBuilder.cs
+++ b/src/main.lib/Services/Interfaces/IAutofacBuilder.cs
@@ -50,6 +50,6 @@ namespace PKISharp.WACS.Services
/// <param name="target"></param>
/// <param name="identifier"></param>
/// <returns></returns>
- ILifetimeScope Validation(ILifetimeScope execution, ValidationPluginOptions options, TargetPart target, string identifier);
+ ILifetimeScope Validation(ILifetimeScope execution, ValidationPluginOptions? options, TargetPart target, string identifier);
}
}
diff --git a/src/main.lib/Services/Interfaces/IInputService.cs b/src/main.lib/Services/Interfaces/IInputService.cs
index a756845..d9dd8fd 100644
--- a/src/main.lib/Services/Interfaces/IInputService.cs
+++ b/src/main.lib/Services/Interfaces/IInputService.cs
@@ -6,10 +6,10 @@ namespace PKISharp.WACS.Services
{
public interface IInputService
{
- Task<TResult> ChooseFromList<TSource, TResult>(string what, IEnumerable<TSource> options, Func<TSource, Choice<TResult>> creator, string nullChoiceLabel = null);
+ Task<TResult> ChooseFromList<TSource, TResult>(string what, IEnumerable<TSource> options, Func<TSource, Choice<TResult>> creator, string? nullChoiceLabel = null);
Task<TResult> ChooseFromList<TResult>(string what, List<Choice<TResult>> choices);
Task<bool> PromptYesNo(string message, bool defaultOption);
- Task<string> ReadPassword(string what);
+ Task<string?> ReadPassword(string what);
Task<string> RequestString(string what);
Task<string> RequestString(string[] what);
void Show(string? label, string? value = null, bool first = false, int level = 0);
diff --git a/src/main.lib/Services/Interfaces/ILogService.cs b/src/main.lib/Services/Interfaces/ILogService.cs
index 2cfd996..62f5b39 100644
--- a/src/main.lib/Services/Interfaces/ILogService.cs
+++ b/src/main.lib/Services/Interfaces/ILogService.cs
@@ -17,13 +17,13 @@ namespace PKISharp.WACS.Services
{
bool Dirty { get; set; }
- void Debug(string message, params object[] items);
- void Error(Exception ex, string message, params object[] items);
- void Error(string message, params object[] items);
- void Information(string message, params object[] items);
- void Information(LogType logType, string message, params object[] items);
+ void Debug(string message, params object?[] items);
+ void Error(Exception ex, string message, params object?[] items);
+ void Error(string message, params object?[] items);
+ void Information(string message, params object?[] items);
+ void Information(LogType logType, string message, params object?[] items);
void SetVerbose();
- void Verbose(string message, params object[] items);
- void Warning(string message, params object[] items);
+ void Verbose(string message, params object?[] items);
+ void Warning(string message, params object?[] items);
}
} \ No newline at end of file
diff --git a/src/main.lib/Services/Interfaces/IRenewalService.cs b/src/main.lib/Services/Interfaces/IRenewalService.cs
index d8368fc..9a52c45 100644
--- a/src/main.lib/Services/Interfaces/IRenewalService.cs
+++ b/src/main.lib/Services/Interfaces/IRenewalService.cs
@@ -5,7 +5,7 @@ namespace PKISharp.WACS.Services
{
internal interface IRenewalStore
{
- IEnumerable<Renewal> FindByArguments(string id, string friendlyName);
+ IEnumerable<Renewal> FindByArguments(string? id, string? friendlyName);
void Save(Renewal renewal, RenewResult result);
void Cancel(Renewal renewal);
void Clear();