コード例 #1
0
        // Constructors

        public AggregatedDeltaCreationStrategy(IDeltaCreator deltaCreator, IDeltaPatcher deltaPatcher, IArchiveManager archiveManager, ISignatureCreator signatureCreator)
        {
            _deltaCreator     = deltaCreator;
            _deltaPatcher     = deltaPatcher;
            _archiveManager   = archiveManager;
            _signatureCreator = signatureCreator;
        }
コード例 #2
0
        // Constructors

        public FileRestore(IArchiveManager archiveManager,
                           IDeltaPatcher deltaPatcher,
                           ISignatureCreator signatureCreator,
                           IDeltaCreator deltaCreator,
                           IFileHandlingStrategySelector fileHandlingStrategySelectors)
        {
            _deltaCreator                 = deltaCreator;
            _signatureCreator             = signatureCreator;
            _fileHandlingStrategySelector = fileHandlingStrategySelectors;
            _archiveManager               = archiveManager;
            _deltaPatcher                 = deltaPatcher;
        }
コード例 #3
0
 public RequestSignerFactory(
     ISigningSettingsSanitizer signingSettingsSanitizer,
     ISignatureCreator signatureCreator,
     IAuthorizationHeaderParamCreator authorizationHeaderParamCreator,
     ISignatureHeaderEnsurer signatureHeaderEnsurer,
     ISystemClock systemClock,
     IRegisteredSignerSettingsStore registeredSignerSettingsStore,
     ILogger <RequestSigner> logger = null)
 {
     _signingSettingsSanitizer        = signingSettingsSanitizer ?? throw new ArgumentNullException(nameof(signingSettingsSanitizer));
     _signatureCreator                = signatureCreator ?? throw new ArgumentNullException(nameof(signatureCreator));
     _authorizationHeaderParamCreator = authorizationHeaderParamCreator ?? throw new ArgumentNullException(nameof(authorizationHeaderParamCreator));
     _signatureHeaderEnsurer          = signatureHeaderEnsurer ?? throw new ArgumentNullException(nameof(signatureHeaderEnsurer));
     _logger = logger;
     _registeredSignerSettingsStore = registeredSignerSettingsStore ?? throw new ArgumentNullException(nameof(registeredSignerSettingsStore));
     _systemClock = systemClock ?? throw new ArgumentNullException(nameof(systemClock));
 }
コード例 #4
0
 public RequestSigner(
     ISigningSettingsSanitizer signingSettingsSanitizer,
     ISignatureCreator signatureCreator,
     IAuthorizationHeaderParamCreator authorizationHeaderParamCreator,
     SigningSettings signingSettings,
     ISignatureHeaderEnsurer signatureHeaderEnsurer,
     ISystemClock systemClock,
     ILogger <RequestSigner> logger = null)
 {
     _signingSettingsSanitizer        = signingSettingsSanitizer ?? throw new ArgumentNullException(nameof(signingSettingsSanitizer));
     _signatureCreator                = signatureCreator ?? throw new ArgumentNullException(nameof(signatureCreator));
     _authorizationHeaderParamCreator = authorizationHeaderParamCreator ?? throw new ArgumentNullException(nameof(authorizationHeaderParamCreator));
     _signingSettings        = signingSettings ?? throw new ArgumentNullException(nameof(signingSettings));
     _signatureHeaderEnsurer = signatureHeaderEnsurer ?? throw new ArgumentNullException(nameof(signatureHeaderEnsurer));
     _systemClock            = systemClock ?? throw new ArgumentNullException(nameof(systemClock));
     _logger = logger;
 }
コード例 #5
0
        // Constructors

        public FirstDeltaCreationStrategy(IDeltaCreator deltaCreator, IArchiveManager archiveManager, ISignatureCreator signatureCreator)
        {
            _deltaCreator     = deltaCreator;
            _archiveManager   = archiveManager;
            _signatureCreator = signatureCreator;
        }
コード例 #6
0
        // Constructors

        public EmptyLogFileHandlingStrategy(IArchiveManager archiveManager, ISignatureCreator signatureCreator)
        {
            _archiveManager   = archiveManager;
            _signatureCreator = signatureCreator;
        }