Exemple #1
0
        public override void ExecuteCmdlet()
        {
            DownloadNodeFileOptions options = new DownloadNodeFileOptions(this.BatchContext, this.JobId, this.TaskId, this.PoolId,
                                                                          this.ComputeNodeId, this.Name, this.InputObject, this.DestinationPath, this.DestinationStream, this.AdditionalBehaviors);

            BatchClient.DownloadNodeFile(options);
        }
Exemple #2
0
        protected override void ExecuteCmdletImpl()
        {
            DestinationPath = ResolveUserPath(DestinationPath);
            if (this.ByteRangeEnd != null && this.ByteRangeStart == null)
            {
                this.ByteRangeStart = 0;
            }

            if (this.ByteRangeEnd == null && this.ByteRangeStart != null)
            {
                this.ByteRangeEnd = long.MaxValue;
            }

            var byteRange = this.ByteRangeStart != null && this.ByteRangeEnd != null
                ? new DownloadNodeFileOptions.ByteRange(this.ByteRangeStart.Value, this.ByteRangeEnd.Value)
                : null;

            DownloadNodeFileOptions options = new DownloadNodeFileOptions(
                this.BatchContext,
                this.JobId,
                this.TaskId,
                this.PoolId,
                this.ComputeNodeId,
                this.Path,
                this.InputObject,
                this.DestinationPath,
                this.DestinationStream,
                byteRange,
                this.AdditionalBehaviors);

            BatchClient.DownloadNodeFile(options);
        }
Exemple #3
0
        protected override void ProcessRecord()
        {
            DownloadNodeFileOptions options = new DownloadNodeFileOptions(this.BatchContext, this.JobId, this.TaskId, this.PoolId,
                                                                          this.ComputeNodeId, this.Name, this.InputObject, this.DestinationPath, this.DestinationStream, this.AdditionalBehaviors);

            BatchClient.DownloadNodeFile(options);
        }