示例#1
0
        public static InProgressDocumentDto ToDto(this InProgressDocument inProgressDocument)
        {
            if (inProgressDocument == null)
            {
                throw new ArgumentNullException(nameof(inProgressDocument));
            }

            return(new InProgressDocumentDto
            {
                Document = new GetDocumentDto {
                    Id = inProgressDocument.Id.GetClientId(), FileName = inProgressDocument.FileName
                },
                State = inProgressDocument.State,
                ErrorInfo = inProgressDocument.ErrorInfo,
                LastStatusUpdateTime = inProgressDocument.LastStatusUpdateTime
            });
        }
示例#2
0
 public InProgressDocumentStateChanged(InProgressDocument inProgressDocument)
 {
     InProgressDocument = inProgressDocument ?? throw new ArgumentNullException(nameof(inProgressDocument));
 }