Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 830 Bytes

File metadata and controls

27 lines (19 loc) · 830 Bytes

Events Extension

This extension provides your with events about HTTP requests, so that you can subscribe to them.

var rc = new RestClient(
    Environment.GetEnvironmentVariable("RINGCENTRAL_CLIENT_ID"),
    Environment.GetEnvironmentVariable("RINGCENTRAL_CLIENT_SECRET"),
    Environment.GetEnvironmentVariable("RINGCENTRAL_SERVER_URL")
)
var eventsExtension = new EventsExtension();
rc.InstallExtension(eventsExtension);

var count = 0;

void EventHandler(object sender, HttpMessages httpMessages)
{
    // do something with httpMessages
}

eventsExtension.RequestSuccess += EventHandler;

More documentation

This extension is inspired by its TypeScript counterpart, check its documentation for more information.