示例#1
0
 /// <remarks/>
 public void ListUsersAsync(ListUsersRequest ListUsersRequest) {
     this.ListUsersAsync(ListUsersRequest, null);
 }
示例#2
0
 /// <remarks/>
 public void ListUsersAsync(ListUsersRequest ListUsersRequest, object userState) {
     if ((this.ListUsersOperationCompleted == null)) {
         this.ListUsersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListUsersOperationCompleted);
     }
     this.InvokeAsync("ListUsers", new object[] {
                 ListUsersRequest}, this.ListUsersOperationCompleted, userState);
 }
示例#3
0
        static bool listUsers(string url, Credentials c)
        {
            Console.WriteLine("Listing users...");

            ArticulateOnline ao = new ArticulateOnline();
            ao.Url = url;
            ListUsersRequest request = new ListUsersRequest();
            request.Credentials = c;
            ListUsersResponse response = ao.ListUsers(request);
            if (response.Success)
            {
                foreach (UserProfile up in response.Profiles)
                {
                    Console.WriteLine(String.Format("{0} {1} {2} {3}", up.UserID, up.EmailAddress, up.FirstName, up.LastName));
                }
            }
            return response.Success;
        }