Class NullContext

Inheritance Relationships

Base Type

Class Documentation

class Microsoft::Applications::Events::NullContext : public Microsoft::Applications::Events::ISemanticContext

Public Functions

inline virtual void SetNetworkCost(NetworkCost) override

Set the network cost context information of telemetry event.

Parameters

networkCost – The cost of using data traffic on the current network

inline virtual void SetNetworkType(NetworkType) override

Set the network type context information of telemetry event.

Parameters

networkType – The type of the current network

inline virtual void SetUserId(const std::string&, PiiKind = PiiKind_Identity) override

Set the userId context information of telemetry event.

Parameters
  • userId – Identifier that uniquely identifies a user in the application-specific user namespace

  • piiKind – PIIKind of the userId. Default to PiiKind_Identity, set it to PiiKind_None to denote it as non-PII.

inline virtual void SetTicket(TicketType, const std::string&) override

Sets the ticket (device ticket, user id ticket, etc.) for secure token validation.

Parameters
  • type – Ticket type

  • ticketValue – Ticket value.

inline virtual void SetCommonField(const std::string&, const EventProperty&) override

Sets the common Part A/B field.

Parameters
  • name – Field name

  • value – Field value.

inline virtual void SetCustomField(const std::string&, const EventProperty&) override

Sets the custom Part C field.

Parameters
  • name – Field name

  • value – Field value.