Skip to content

Latest commit

 

History

History
 
 

RingCentral.Net.Events

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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.