Exemple #1
0
        public RUIResult SetProductVersion()
        {
            var result = RUIResult.sdkSuspended; ///The RUI Server has instructed a temporary back-off.

            try
            {
                Dev2Logger.Warn($"Revulytics.SetProductVersion: {ProductVersion}", "");
                result = RuiSdk.SetProductVersion(ProductVersion);
                return(result);
            }
            catch (RUISDKCreationException ex)
            {
                Dev2Logger.Error("Error in SetProductVersion method (RUISDKCreationException)", ex, Core.RevulyticsSdkError);
                return(result);
            }
            catch (ArgumentNullException e)
            {
                Dev2Logger.Error("Error in SetProductVersion method (ArgumentNullException)", e, Core.RevulyticsSdkError);
                return(result);
            }
            catch (Exception e)
            {
                Dev2Logger.Error("Error in SetProductVersion method", e, Core.RevulyticsSdkError);
                return(result);
            }
        }
Exemple #2
0
        public RUIResult StopSdk()
        {
            var result = RUIResult.sdkAlreadyStopped;

            try
            {
                result = RuiSdk.StopSDK(10);
                return(result);
            }
            catch (RUISDKCreationException ex)
            {
                Dev2Logger.Error("Error in StartSdk method (RUISDKCreationException)", ex, Core.RevulyticsSdkError);
                return(result);
            }
            catch (ArgumentNullException e)
            {
                Dev2Logger.Error("Error in StartSdk method (ArgumentNullException)", e, Core.RevulyticsSdkError);
                return(result);
            }
            catch (Exception e)
            {
                Dev2Logger.Error("Error in StartSdk method", e, Core.RevulyticsSdkError);
                return(result);
            }
        }
Exemple #3
0
        public RUIResult StartSession()
        {
            var result = RUIResult.sdkSuspended;

            try
            {
                result = RuiSdk.StartSession(Username);
                return(result);
            }
            catch (RUISDKCreationException ex)
            {
                Dev2Logger.Error("Error in StartSession method (RUISDKCreationException)", ex, Core.RevulyticsSdkError);
                return(result);
            }
            catch (ArgumentNullException e)
            {
                Dev2Logger.Error("Error in StartSession method (ArgumentNullException)", e, Core.RevulyticsSdkError);
                return(result);
            }
            catch (Exception e)
            {
                Dev2Logger.Error("Error in StartSession method", e, Core.RevulyticsSdkError);
                return(result);
            }
        }
 public void TrackCustomEvent(string category, string eventName, string customValues)
 {
     if (AppUsageStats.CollectUsageStats && RuiSdk != null)
     {
         var result = RuiSdk.TrackEventText(category, eventName, customValues, Username);
         LogErrorResult(result);
     }
 }
Exemple #5
0
 public void TrackEvent(string category, string eventName)
 {
     if (AppUsageStats.CollectUsageStats && RuiSdk != null)
     {
         var result = RuiSdk.TrackEvent(category, eventName, Username);
         LogErrorResult("TrackEvent", result);
     }
 }
 public RUIResult StopSession()
 {
     return(RuiSdk.StopSession(Username));
 }
 public RUIResult SetProductVersion()
 {
     return(RuiSdk.SetProductVersion(ProductVersion));
 }
 public RUIResult StopSdk()
 {
     return(RuiSdk.StopSDK(10));
 }
 public RUIResult StartSdk()
 {
     return(RuiSdk.StartSDK());
 }