Class IAFDClientCallback

Nested Relationships

Nested Types

Class Documentation

class Microsoft::Applications::Experimentation::AFD::IAFDClientCallback

The IAFDClientCallback class implements the Callback for the AFDClient to notify its listener of events that have occurred.

Public Types

enum AFDClientEventType

The AFDClientEventType enumeration contains a set of values that specify the result of a configuration update.

Values:

enumerator ET_CONFIG_UPDATE_SUCCEEDED

The configuration update succeeded.

enumerator ET_CONFIG_UPDATE_FAILED

The configuration update failed.

Public Functions

virtual void OnAFDClientEvent(AFDClientEventType evtType, AFDClientEventContext evtContext) = 0

The OnAFDClientEvent pure virtual function is a callback that allows the AFDClient to notify its listener of configuration changes.

Parameters
  • evtType – The type of AFDClient event.

  • evtContext – The AFDClient event context information.

struct AFDClientEventContext

The AFDClientEventContext structure contains the state of the AFD client event context.

Public Members

std::string clientId

A string that contains the client ID.

std::string clientVersion

A string that contains the client version.

std::string impressionID

A string that contains the impression ID (the identifier of the currently running flights).

std::int64_t flightingVersion

An int64-t that specifies the flighting version.

std::map<std::string, std::string> requestHeaders

A standard map that contains the request headers.

std::map<std::string, std::string> requestParameters

A standard map that contains the request parameters.

std::vector<std::string> features

A standard vector that contains the list of features.

std::vector<std::string> flights

A standard vector that contains the names of the flights.

std::map<std::string, std::string> configs
unsigned int configExpiryTimeInSec

An unsigned integer that specifies the length of time (in seconds) that the configuration remains valid.

bool configUpdateFromAFD

A boolean value that indicates that there is an update from the Azure Front Door server.