Exemple #1
0
        public override async Task RunAsync()
        {
            /**
             * This scenario describes how to list documents.
             */

            //1 - define the arguments to list the documents according to your requirements
            var searchParams = new DocumentListParameters
            {
                Order       = PaginationOrders.Desc, //Order the list: Ascending = Oldest on top / Descending = Newest on top
                Limit       = 10,                    //Define the number of Documents that you want to list
                IsConcluded = false,                 // List concluded documents if it's "true"
                Q           = "TestDocumentName"     //Retrieve the document list by name
            };

            //2 - Call the ListDocument method and pass "searchParams" as a parameter
            var listOfDocuments = await SignerClient.ListDocumentsAsync(searchParams);


            foreach (var item in listOfDocuments.Items)
            {
                System.Console.WriteLine(item.Name);
            }
        }