添加项目文件。
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using AutoMapper;
|
||||
using FileService.Application.StorageContracts;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FileService.Application.UploadFileTask
|
||||
{
|
||||
public class UploadTaskMapperConfig:Profile
|
||||
{
|
||||
public UploadTaskMapperConfig()
|
||||
{
|
||||
CreateMap<InitiateUploadResult, TaskInitResponse>()
|
||||
.ForMember(dest => dest.StorageLocation, opt => opt.MapFrom(src => src.Location))
|
||||
.ForMember(dest => dest.UploadSessionId, opt => opt.MapFrom(src => src.UploadSessionId))
|
||||
;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user