Ejemplo n.º 1
0
        public BlobLease(
            Fifthweek.Shared.ITimestampCreator timestampCreator,
            Fifthweek.Azure.IBlobLeaseHelper blobLeaseHelper,
            System.Threading.CancellationToken cancellationToken,
            System.String leaseObjectName)
        {
            if (timestampCreator == null)
            {
                throw new ArgumentNullException("timestampCreator");
            }

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

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

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

            this.timestampCreator  = timestampCreator;
            this.blobLeaseHelper   = blobLeaseHelper;
            this.cancellationToken = cancellationToken;
            this.leaseObjectName   = leaseObjectName;
        }
Ejemplo n.º 2
0
        public BlobLeaseFactory(
            Fifthweek.Shared.ITimestampCreator timestampCreator,
            Fifthweek.Azure.IBlobLeaseHelper blobLeaseHelper)
        {
            if (timestampCreator == null)
            {
                throw new ArgumentNullException("timestampCreator");
            }

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

            this.timestampCreator = timestampCreator;
            this.blobLeaseHelper  = blobLeaseHelper;
        }