Skip to content

Question Using developer proxy with Microsoft Graph .NET Client Library 5.x #346

@procioadmin

Description

@procioadmin

Hi and thank you for this super cool tool!
I am using the Microsoft Graph .NET Client Library 5.x library to download/move emails around. I want to improve my error handling with help of the m365-developer-proxy but I cannot bring it to work. My App is a console app with client credentials authentication method. For example if I poll for a mail I expect that the developer proxy intercepts but nothing happens.

Here my coding:

MessageCollectionResponse mails = await graphClient.Users[user].MailFolders[boxid].Messages.GetAsync((requestConfiguration) =>
{
    requestConfiguration.QueryParameters.Top = qty;
    requestConfiguration.QueryParameters.Orderby = new string[] { "subject", "importance", "receivedDateTime asc" };
    requestConfiguration.QueryParameters.Filter = "";
});

I thought using Microsoft Graph .NET library translates the C#-Requests to HTTP calls?! What did I miss?

Thank you very much in advance,
Christian

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions