CKFinder 3 – ASP.NET Connector Documentation
IDtoMapper Interface Reference

Defines a data transfer object mapper. More...

Public Member Functions

Task< ResourceDto > MapToResourceDtoAsync (ResourceType resourceType, CancellationToken cancellationToken)
 Asynchronously maps ResourceType. More...
 
Task< ResourceDto[]> MapToResourceDtoAsync (IEnumerable< ResourceType > resources, CancellationToken cancellationToken)
 Asynchronously maps collection of resources. More...
 
Task< FolderDto > MapToFolderDtoAsync (IFolder folder, CancellationToken cancellationToken)
 Asynchronously maps folder. More...
 
Task< FolderDto[]> MapToFolderDtoAsync (IEnumerable< IFolder > folders, CancellationToken cancellationToken)
 Asynchronously maps collection of folders. More...
 
Task< FileInfoDto > MapToFileInfoDtoAsync (FileInfo fileInfo, CancellationToken cancellationToken)
 Asynchronously maps file information. More...
 
Task< FileInfoDto[]> MapToFileInfoDtoAsync (IEnumerable< FileInfo > fileInfos, CancellationToken cancellationToken)
 Asynchronously maps collection of file informations. More...
 
Task< CurrentDirectoryDto > MapToCurrentDirectoryDtoAsync (IFolder folder, CancellationToken cancellationToken)
 Asynchronously maps folder. More...
 

Detailed Description

Defines a data transfer object mapper.

Member Function Documentation

◆ MapToCurrentDirectoryDtoAsync()

Task<CurrentDirectoryDto> MapToCurrentDirectoryDtoAsync ( IFolder  folder,
CancellationToken  cancellationToken 
)

Asynchronously maps folder.

Parameters
folderA folder to map.
cancellationTokenA cancellation token.
Returns
A mapped folder.

◆ MapToFileInfoDtoAsync() [1/2]

Task<FileInfoDto> MapToFileInfoDtoAsync ( FileInfo  fileInfo,
CancellationToken  cancellationToken 
)

Asynchronously maps file information.

Parameters
fileInfoA file information to map.
cancellationTokenA cancellation token.
Returns
A mapped file information.

◆ MapToFileInfoDtoAsync() [2/2]

Task<FileInfoDto[]> MapToFileInfoDtoAsync ( IEnumerable< FileInfo >  fileInfos,
CancellationToken  cancellationToken 
)

Asynchronously maps collection of file informations.

Parameters
fileInfosA collection of file informations to map.
cancellationTokenA cancellation token.
Returns
A mapped file informations.

◆ MapToFolderDtoAsync() [1/2]

Task<FolderDto[]> MapToFolderDtoAsync ( IEnumerable< IFolder >  folders,
CancellationToken  cancellationToken 
)

Asynchronously maps collection of folders.

Parameters
foldersA collection of folders to map.
cancellationTokenA cancellation token.
Returns
A mapped folders.

◆ MapToFolderDtoAsync() [2/2]

Task<FolderDto> MapToFolderDtoAsync ( IFolder  folder,
CancellationToken  cancellationToken 
)

Asynchronously maps folder.

Parameters
folderA folder to map.
cancellationTokenA cancellation token.
Returns
A mapped folder.

◆ MapToResourceDtoAsync() [1/2]

Task<ResourceDto[]> MapToResourceDtoAsync ( IEnumerable< ResourceType >  resources,
CancellationToken  cancellationToken 
)

Asynchronously maps collection of resources.

Parameters
resourcesA collection of resources to map.
cancellationTokenA cancellation token.
Returns
A mapped resources.

◆ MapToResourceDtoAsync() [2/2]

Task<ResourceDto> MapToResourceDtoAsync ( ResourceType  resourceType,
CancellationToken  cancellationToken 
)

Asynchronously maps ResourceType.

Parameters
resourceTypeA ResourceType to map.
cancellationTokenA cancellation token.
Returns
A mapped ResourceType.

The documentation for this interface was generated from the following file: