You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created an extended type for my user query (Messages) everything is working as it should beside i need to enable paging for the messages using MS graph client. What is the best way to implment paging using MS graph client ?
[ExtendObjectType(typeof(Data.Models.User))]
public class UserExtensions
{
public async Task<ICollection<Data.Models.Message>> GetMessagesAsync(
[Service] GraphServiceClient graphServiceClient,
CancellationToken cancellationToken)
{
var messagesJosn = await graphServiceClient.Me.Messages.Request().GetAsync(cancellationToken);
return JsonConvert.DeserializeObject<ICollection<Data.Models.Message>>(JsonConvert.SerializeObject(messagesJosn));
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have created an extended type for my user query (Messages) everything is working as it should beside i need to enable paging for the messages using MS graph client. What is the best way to implment paging using MS graph client ?
Beta Was this translation helpful? Give feedback.
All reactions