Ejemplo n.º 1
0
        public DeleteBlobsForFile(
            Fifthweek.Api.FileManagement.Shared.IBlobLocationGenerator blobLocationGenerator,
            Fifthweek.Azure.ICloudStorageAccount cloudStorageAccount)
        {
            if (blobLocationGenerator == null)
            {
                throw new ArgumentNullException("blobLocationGenerator");
            }

            if (cloudStorageAccount == null)
            {
                throw new ArgumentNullException("cloudStorageAccount");
            }

            this.blobLocationGenerator = blobLocationGenerator;
            this.cloudStorageAccount   = cloudStorageAccount;
        }
Ejemplo n.º 2
0
        public DeleteOrphanedBlobContainers(
            Fifthweek.GarbageCollection.IGetAllChannelIdsDbStatement getAllChannelIds,
            Fifthweek.Azure.ICloudStorageAccount cloudStorageAccount)
        {
            if (getAllChannelIds == null)
            {
                throw new ArgumentNullException("getAllChannelIds");
            }

            if (cloudStorageAccount == null)
            {
                throw new ArgumentNullException("cloudStorageAccount");
            }

            this.getAllChannelIds    = getAllChannelIds;
            this.cloudStorageAccount = cloudStorageAccount;
        }
Ejemplo n.º 3
0
        public TestPaymentsAvailabilityStatement(
            Fifthweek.Shared.IExceptionHandler exceptionHandler,
            Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ITransientErrorDetectionStrategy transientErrorDetectionStrategy,
            Fifthweek.Azure.ICloudStorageAccount cloudStorageAccount,
            ITimestampCreator timestampCreator,
            Fifthweek.Payments.Shared.IRequestProcessPaymentsService requestProcessPayments,
            Fifthweek.Api.Availability.ILastPaymentsRestartTimeContainer lastPaymentsRestartTimeContainer)
        {
            if (exceptionHandler == null)
            {
                throw new ArgumentNullException("exceptionHandler");
            }

            if (transientErrorDetectionStrategy == null)
            {
                throw new ArgumentNullException("transientErrorDetectionStrategy");
            }

            if (cloudStorageAccount == null)
            {
                throw new ArgumentNullException("cloudStorageAccount");
            }

            if (timestampCreator == null)
            {
                throw new ArgumentNullException("timestampCreator");
            }

            if (requestProcessPayments == null)
            {
                throw new ArgumentNullException("requestProcessPayments");
            }

            if (lastPaymentsRestartTimeContainer == null)
            {
                throw new ArgumentNullException("lastPaymentsRestartTimeContainer");
            }

            this.exceptionHandler = exceptionHandler;
            this.transientErrorDetectionStrategy = transientErrorDetectionStrategy;
            this.cloudStorageAccount             = cloudStorageAccount;
            this.timestampCreator                 = timestampCreator;
            this.requestProcessPayments           = requestProcessPayments;
            this.lastPaymentsRestartTimeContainer = lastPaymentsRestartTimeContainer;
        }