public CertificateTask(CertificateSource certificateSource, DocumentLine documentLine)
 {
     CertificateSource = certificateSource;
     CatalogProduct    = documentLine.ProductEntity.CatalogProduct;
     SerialNumber      = documentLine.CertificateSerialNumber;
     DocumentLine      = documentLine;
 }
Esempio n. 2
0
 public void AddCertificateTask(DocumentLine documentLine, CertificateSource source)
 {
     if (source.IsDisabled)
     {
         return;
     }
     Tasks.Add(new CertificateTask(source, documentLine));
 }
 public CertificateFile(string localFile, string externalFileId,
                        string originFile        = null,
                        CertificateSource source = null)
     : this()
 {
     LocalFile      = localFile;
     ExternalFileId = externalFileId;
     if (!String.IsNullOrEmpty(originFile))
     {
         OriginFilename = Path.GetFileName(originFile);
         Extension      = Path.GetExtension(originFile);
     }
     CertificateSource = source;
 }