New component: Rebex Graph - client API for MS Graph

  |   Lukas Pokorny

Rebex Graph is a .NET library for accessing Microsoft 365 (Exchange Online) using Microsoft Graph API. It makes it possible to send, receive, list and search e-mail messages. It supports TLS 1.3/1.2 and S/MIME on all recent .NET platforms (including .NET Framework 3.5-4.8 and .NET 6.0-8.0).

Sample Graph app with OAuth 2.0

Easy-to-use API

With Rebex Graph's simple API, working with e-mails in Microsoft's cloud is easy:

var client = new Rebex.Net.GraphClient();

// connect and authenticate to Exchange Online (Microsoft 365) server
client.Connect();
client.Login(token);

// get list of top 10 unread messages in Inbox and show their headers
var page = new GraphPageView(0, 10);
var unread = GraphMessageSearchParameter.IsRead(false);
var list = client.Search(GraphFolderId.Inbox, page, unread);

foreach (var info in list)
{
    Console.WriteLine("{0}: {1}", info.ReceivedDate, info.Subject);
}

Having troubles with setting up client access for your app in Microsoft's Azure? Check out our extensive blog posts that come with working sample code:

Rebex Graph is available as a standalone package, or as a part of Rebex Total Pack or Rebex Mail Pack. If you already have an active support contract for Rebex Total Pack or Rebex Mail Pack (formerly Rebex Secure Mail), you can download the full version including the Graph library now!

See also: Rebex Graph homepage | Features | Download trial | Pricing from $199