Setup a Service Client

To get started, we need to setup a service client for the Event library. If you are not familiar with how Recuro Health uses service clients, you can learn more here.

Configuration

Using the example below, swap the placeholder value for SubscriptionKey with the Subscription Key that was provided to you.

using WellViaSDK.Core;
using WellViaSDK.Event;

// Variables
var config; // Created in earlier tutorial
var creds; // Created in earlier tutorial

var evntClient = new WellViaEventServiceClient(config, creds);

Our new service client has been assigned to a variable called evntClient. You will see this variable referenced throughout the rest of the Event library guide.


What’s Next

Great! Now let's add our first Subscriber