Amazon.S3.Transfer.TransferUtility.GetUploadCommand C# (CSharp) Method

GetUploadCommand() private method

private GetUploadCommand ( TransferUtilityUploadRequest request, SemaphoreSlim asyncThrottler ) : BaseCommand
request TransferUtilityUploadRequest
asyncThrottler System.Threading.SemaphoreSlim
return Amazon.S3.Transfer.Internal.BaseCommand
        internal BaseCommand GetUploadCommand(TransferUtilityUploadRequest request, SemaphoreSlim asyncThrottler)
        {
            validate(request);
            if (IsMultipartUpload(request))
            {
                var command = new MultipartUploadCommand(this._s3Client, this._config, request);
                command.AsyncThrottler = asyncThrottler;
                return command;
            }
            else
            {
                var command = new SimpleUploadCommand(this._s3Client, this._config, request);
                command.AsyncThrottler = asyncThrottler;
                return command;
            }
        }
    }