private void SetInstanceCustomProperties(CustomProperties customProperties)
 {
     if (!Configured)
     {
         AppCenterLog.Error(AppCenterLog.LogTag, NotConfiguredMessage);
         return;
     }
     if (customProperties == null || customProperties.Properties.Count == 0)
     {
         AppCenterLog.Error(AppCenterLog.LogTag, "Custom properties may not be null or empty");
         return;
     }
     _channel.EnqueueAsync(new CustomPropertyLog {
         Properties = customProperties.Properties
     });
 }
Beispiel #2
0
        private void SetInstanceCustomProperties(CustomProperties customProperties)
        {
            if (!Configured)
            {
                AppCenterLog.Error(AppCenterLog.LogTag, "App Center hasn't been configured. " +
                                   "You need to call AppCenter.Start with appSecret or AppCenter.Configure first.");
                return;
            }
            if (customProperties == null || customProperties.Properties.Count == 0)
            {
                AppCenterLog.Error(AppCenterLog.LogTag, "Custom properties may not be null or empty");
                return;
            }
            var customPropertiesLog = new CustomPropertyLog();

            customPropertiesLog.Properties = customProperties.Properties;
            _channel.EnqueueAsync(customPropertiesLog);
        }
Beispiel #3
0
 static void PlatformSetCustomProperties(CustomProperties customProperties)
 {
     AndroidAppCenter.SetCustomProperties(customProperties.AndroidCustomProperties);
 }
Beispiel #4
0
 static void PlatformSetCustomProperties(CustomProperties customProperties)
 {
 }
Beispiel #5
0
 static void PlatformSetCustomProperties(CustomProperties customProperties)
 {
     MacOSAppCenter.SetCustomProperties(customProperties?.IOSCustomProperties);
 }
Beispiel #6
0
 /// <summary>
 /// Set the custom properties.
 /// </summary>
 /// <param name="customProperties">Custom properties object.</param>
 public static void SetCustomProperties(CustomProperties customProperties)
 {
     PlatformSetCustomProperties(customProperties);
 }