public async Task GetTeamAsync(string teamId, OnGetTeamCompleted onGetTeamCompleted) { GraphServiceClient graphClient = AuthenticationHelper.Instance.GetAuthenticatedClient(); if (graphClient != null) { var group = await graphClient.Groups[teamId].Request().GetAsync(); var team = new TeamEntity { Id = group.Id, DisplayName = group.DisplayName, Description = group.Description, IsArchived = group.IsArchived }; onGetTeamCompleted(team); } }
public void GetTeam(string teamId, OnGetTeamCompleted onGetTeamCompleted) { }
public void GetTeam(string teamId, OnGetTeamCompleted onGetTeamCompleted) { System.Threading.Tasks.Task.Run( () => GetTeamAsync(teamId, onGetTeamCompleted)); }