Ejemplo n.º 1
0
        static void PlatformTrackError(Exception exception, IDictionary <string, string> properties, ErrorAttachmentLog[] attachments)
        {
            NSDictionary propertyDictionary = properties != null?StringDictToNSDict(properties) : new NSDictionary();

            NSMutableArray attachmentArray = new NSMutableArray();

            foreach (var attachment in attachments)
            {
                if (attachment?.internalAttachment != null)
                {
                    attachmentArray.Add(attachment.internalAttachment);
                }
                else
                {
                    AppCenterLog.Warn(LogTag, "Skipping null ErrorAttachmentLog in Crashes.TrackError.");
                }
            }
            MSWrapperCrashesHelper.TrackModelException(GenerateiOSException(exception, false), propertyDictionary, attachmentArray);
        }