= new AuthenticationHeaderValue(token.TokenType, token.AccessToken) Īfter this we can create GraphServiceClient like this: GraphServiceClient graphServiceClient = There is a way to impement own IAuthenticationProvider with implementation AuthenticateRequestAsync like this public async Task AuthenticateRequestAsync(HttpRequestMessage request) using IAuthenticationProvider and Active Directory Tenant Id.Sometimes this approach works, but for some cases does not work (for example, if 2-way authentication is enabled) ![]() Var items = _service.FindItems(WellKnownFolderName.Inbox, searchFilter: new SearchFilter.IsGreaterThan(TaskSchema.DateTimeCreated, (-10)), new ItemView(int.MaxValue)) _service = new ExchangeService(ExchangeVersion.Exchange2013_SP1) Using nuget package we can get access to email profile, e.g. I see the following ways to implement it. Ideally, user enters credentials of his Microsoft Office/Exchange email on webpage and receive this info. ![]() I need to read emails using C# (concrete task - count of received/sent emails by range).
0 Comments
Leave a Reply. |