FileDownload

The event FileDownload fires during the processing of a job when KCM Core needs to send a file to the client application. Handlers of the FileDownload event should be of the type Aia.ITP.Server.Job.FileDownloadHandler.

 delegate string FileDownloadHandler(string  filename);

A FileDownload handler receives a parameter file name that specifies a suggestion for the name of the file being sent by KCM Core. The return value of the handler should be the name of the file as which the downloaded file will be stored. It is also possible to refuse the download by returning null or throwing an exception. This causes the KCM Core job to fail immediately. If no event handler is installed for the event FileDownload and KCM Core tries to send a file for download, the job fails as well.