I am trying to retrieve the CompletedAt date for a GroupShare project using the GroupShare Developer Kit for GS 2015.
I am getting a handle on the project through its ID, which is returned correctly. As soon as I try to retrieve properties such as project completed date through the Results class, my sample the application gets stuck and is not responding, e.g.:
DateTime completedDate = Convert.ToDateTime(groupShareClient.Project.Get(id).Result.CompletedAt);
Other properties such as IsCompleted are returned ok, e.g.:
MessageBox.Show(groupShareClient.Project.Get(id).IsCompleted.ToString());
Here is some code from the sample application I am using:
GroupShareClient groupShareClient;
groupShareClient = await GroupShareClient.AuthenticateClient("user name", "password", new Uri("http://myserver), GroupShareClient.AllScopes);
string id = project.ProjectId.ToString();
DateTime completedDate = Convert.ToDateTime(groupShareClient.Project.Get(id).Result.CompletedAt);