EventData LogToEventData(MSEventLog eventLog) { var data = new EventData { Name = eventLog.Name }; return(data); }
private EventData LogToEventData(MSEventLog eventLog) { var data = new EventData(); data.Name = eventLog.Name; data.Properties = new Dictionary <string, string>(); if (eventLog.Properties != null) { foreach (NSString nsstringKey in eventLog.Properties.Keys) { string strVal = eventLog.Properties.ValueForKey(nsstringKey).ToString(); string strKey = nsstringKey.ToString(); data.Properties.Add(strKey, strVal); } } return(data); }
public override void DidFailSendingEventLog(MSAnalytics analytics, MSEventLog eventLog, NSError error) { AppCenterLog.Debug(App.LogTag, "Failed to send event with error: " + error); }
public override void DidSucceedSendingEventLog(MSAnalytics analytics, MSEventLog eventLog) { AppCenterLog.Debug(App.LogTag, "Did send event"); }
public override void WillSendEventLog(MSAnalytics analytics, MSEventLog eventLog) { AppCenterLog.Debug(App.LogTag, "Will send event"); }
public override void DidFailSendingEventLog(MSAnalytics analytics, MSEventLog eventLog, NSError error) { EventSharer.InvokeFailedToSendEvent(LogToEventData(eventLog)); }
public override void DidSucceedSendingEventLog(MSAnalytics analytics, MSEventLog eventLog) { EventSharer.InvokeSentEvent(LogToEventData(eventLog)); }