Exemplo n.º 1
0
 /// <remarks/>
 public void ListDocumentsAsync(ListDocumentsRequest ListDocumentsRequest) {
     this.ListDocumentsAsync(ListDocumentsRequest, null);
 }
Exemplo n.º 2
0
 /// <remarks/>
 public void ListDocumentsAsync(ListDocumentsRequest ListDocumentsRequest, object userState) {
     if ((this.ListDocumentsOperationCompleted == null)) {
         this.ListDocumentsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListDocumentsOperationCompleted);
     }
     this.InvokeAsync("ListDocuments", new object[] {
                 ListDocumentsRequest}, this.ListDocumentsOperationCompleted, userState);
 }
Exemplo n.º 3
0
        static bool listDocuments(string url, Credentials c)
        {
            Console.WriteLine("Listing documents...");

            ArticulateOnline ao = new ArticulateOnline();
            ao.Url = url;
            ListDocumentsRequest request = new ListDocumentsRequest();
            request.Credentials = c;
            ListDocumentsResponse response = ao.ListDocuments(request);
            if (response.Success)
            {
                foreach (DocumentSummary ds in response.Documents)
                {
                    Console.WriteLine(String.Format("{0} {1} {2}", ds.DocumentID, ds.Name, ds.Description));
                }
            }
            return response.Success;
        }