private string DetectContentType(UploadParameter uploadParam, IByteStreamParameterData byteStreamParamData) { return(uploadParam.DetectContentType && byteStreamParamData.ContentType == null ? byteStreamParamData.GetByteStream().DetectContentType() : byteStreamParamData.ContentType); }
private Stream EncryptByteStream(UploadParameter uploadParam, IByteStreamParameterData byteStreamParamData) { return(uploadParam.PrivacyStrategy.EncryptStream(byteStreamParamData.GetByteStream())); }