예제 #1
0
        EventData LogToEventData(MSEventLog eventLog)
        {
            var data = new EventData
            {
                Name = eventLog.Name
            };

            return(data);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public override void DidFailSendingEventLog(MSAnalytics analytics, MSEventLog eventLog, NSError error)
 {
     AppCenterLog.Debug(App.LogTag, "Failed to send event with error: " + error);
 }
예제 #4
0
 public override void DidSucceedSendingEventLog(MSAnalytics analytics, MSEventLog eventLog)
 {
     AppCenterLog.Debug(App.LogTag, "Did send event");
 }
예제 #5
0
 public override void WillSendEventLog(MSAnalytics analytics, MSEventLog eventLog)
 {
     AppCenterLog.Debug(App.LogTag, "Will send event");
 }
예제 #6
0
 public override void DidFailSendingEventLog(MSAnalytics analytics, MSEventLog eventLog, NSError error)
 {
     EventSharer.InvokeFailedToSendEvent(LogToEventData(eventLog));
 }
예제 #7
0
 public override void DidSucceedSendingEventLog(MSAnalytics analytics, MSEventLog eventLog)
 {
     EventSharer.InvokeSentEvent(LogToEventData(eventLog));
 }