Exemple #1
0
        public Signer Build()
        {
            Support.LogMethodEntry();

            Signer signer;

            if (isGroupSigner())
            {
                signer = new Signer(groupId);
            }
            else
            {
                Asserts.NotEmptyOrNull(firstName, "firstName");
                Asserts.NotEmptyOrNull(lastName, "lastName");
                Authentication authentication = authenticationBuilder.Build();
                signer         = new Signer(signerEmail, firstName, lastName, authentication);
                signer.Title   = title;
                signer.Company = company;
                signer.DeliverSignedDocumentsByEmail = deliverSignedDocumentsByEmail;
            }


            signer.SigningOrder    = signingOrder;
            signer.CanChangeSigner = canChangeSigner;
            signer.Message         = message;
            signer.Id     = id;
            signer.Locked = locked;

            Support.LogMethodExit(signer);
            return(signer);
        }
        private Signer BuildRegularSigner()
        {
            Asserts.NotEmptyOrNull(firstName, "firstName");
            Asserts.NotEmptyOrNull(lastName, "lastName");

            if (authentication == null)
            {
                authentication = authenticationBuilder.Build();
            }

            Signer result = new Signer(signerEmail, firstName, lastName, authentication);

            result.Title   = title;
            result.Company = company;
            result.DeliverSignedDocumentsByEmail = deliverSignedDocumentsByEmail;

            result.SigningOrder    = signingOrder;
            result.CanChangeSigner = canChangeSigner;
            result.Message         = message;
            result.Id          = id;
            result.Locked      = locked;
            result.Attachments = attachments;

            return(result);
        }
Exemple #3
0
        public Signer Build()
        {
            Asserts.NotEmptyOrNull(firstName, "firstName");
            Asserts.NotEmptyOrNull(lastName, "lastName");

            Authentication authentication = authenticationBuilder.Build();
            Signer         signer         = new Signer(signerEmail, firstName, lastName, authentication);

            signer.Title   = title;
            signer.Company = company;
            signer.DeliverSignedDocumentsByEmail = deliverSignedDocumentsByEmail;
            signer.SigningOrder    = signingOrder;
            signer.Message         = message;
            signer.CanChangeSigner = canChangeSigner;
            signer.Id     = id;
            signer.Locked = locked;
            signer.RoleId = roleId;
            return(signer);
        }