示例#1
0
 public PreferencesManager([NotNull] IConfiguration configuration, [NotNull] IPreferencesStore preferencesStore, [NotNull] IWeakCache <string, object> preferencesCache)
 {
     _Configuration    = configuration ?? throw new ArgumentNullException(nameof(configuration));
     _PreferencesStore = preferencesStore ?? throw new ArgumentNullException(nameof(preferencesStore));
     _PreferencesCache = preferencesCache ?? throw new ArgumentNullException(nameof(preferencesCache));
 }
示例#2
0
 public EnvironmentVariableDataProtectionPasswordProvider([NotNull] IWeakCache <string, string> variableNameCache)
 {
     _VariableNameCache = variableNameCache ?? throw new ArgumentNullException(nameof(variableNameCache));
 }