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
     });
 }
Пример #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);
        }
Пример #3
0
 static void PlatformSetCustomProperties(CustomProperties customProperties)
 {
     AndroidAppCenter.SetCustomProperties(customProperties.AndroidCustomProperties);
 }
Пример #4
0
 static void PlatformSetCustomProperties(CustomProperties customProperties)
 {
 }
Пример #5
0
 static void PlatformSetCustomProperties(CustomProperties customProperties)
 {
     MacOSAppCenter.SetCustomProperties(customProperties?.IOSCustomProperties);
 }
Пример #6
0
 /// <summary>
 /// Set the custom properties.
 /// </summary>
 /// <param name="customProperties">Custom properties object.</param>
 public static void SetCustomProperties(CustomProperties customProperties)
 {
     PlatformSetCustomProperties(customProperties);
 }