Class DownloadQuery<TDownloadApi, TDownloadParams>
- Namespace
- Apizr.Mediation.Requesting
- Assembly
- Apizr.Integrations.FileTransfer.MediatR.dll
The mediation download query with a custom query parameters type
public class DownloadQuery<TDownloadApi, TDownloadParams> : MediationQueryBase<FileInfo, IApizrRequestOptions, IApizrRequestOptionsBuilder>, IMediationQuery<FileInfo>, IRequest<FileInfo>, IBaseRequest where TDownloadApi : IDownloadApi<TDownloadParams>
Type Parameters
TDownloadApiThe download api type to manage
TDownloadParamsThe query parameters type
- Inheritance
-
DownloadQuery<TDownloadApi, TDownloadParams>
- Implements
-
IRequest<FileInfo>IBaseRequest
- Derived
- Inherited Members
Constructors
DownloadQuery(FileInfo, TDownloadParams, Action<IApizrRequestOptionsBuilder>)
The mediation Read query constructor
public DownloadQuery(FileInfo fileInfo, TDownloadParams downloadParams, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
fileInfoFileInfoSome information about the file to download
downloadParamsTDownloadParamsSome custom query parameters
optionsBuilderAction<IApizrRequestOptionsBuilder>Some request options
Properties
DownloadParams
Some custom query parameters
public TDownloadParams DownloadParams { get; }
Property Value
- TDownloadParams
FileInfo
Some information about the file to download
public FileInfo FileInfo { get; }