listener.StatisticValueUpdated += (sender, e) =>
{
if (e.StatisticValues.Count > 0)
{
StatisticValue statValue = e.StatisticValues[0];
ReadOnlyCollection<StatisticKey> key = e.StatisticKeys;
if (!statValue.IsError && !statValue.IsNull)
{
//work with stat
}
}
};
What I have tried: -Created a lamda expression to have access to other variables.
I currently have a listener in which I need to keep track of statistics. Each statistic has a statistic as well as a campaign. I am using an API so I cannot customize the "EventArgs". I basically need a Unique Identifier for each listener. How can I accomplish this?
EDIT: What I ended up doing was creating a base class aggregate and wrapped each statistics with their given parameter set.