Manager class for the Background work.
 /// <summary>
 /// Constructor.
 /// </summary>
 private SDKManager()
 {
     SdkEngine = new SdkEngine(true);
     Status    = new SdkStatus();
     _backgroundTaskManager = new BackgroundTaskManager();
     _backgroundTaskManager.RegisterOnProgressEventHandler();
 }
        public async Task <BackgroundTaskRegistrationResult> UpdateBackgroundTaskIfNeededAsync()
        {
            BackgroundTaskRegistrationResult result = new BackgroundTaskRegistrationResult()
            {
                Success   = true,
                Exception = null
            };

            if (BackgroundTaskManager.CheckIfBackgroundFilterUpdateIsRequired())
            {
                result = await _backgroundTaskManager.UpdateBackgroundTaskAsync(Configuration);
            }

            SdkData.BackgroundTaskEnabled = true;
            return(result);
        }
 /// <summary>
 /// Constructor.
 /// </summary>
 private SDKManager()
 {
     _sdkEngine = new SDKEngine(true);
     _backgroundTaskManager = new BackgroundTaskManager();
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 private SDKManager()
 {
     SdkEngine = new SdkEngine(true);
     Status = new SdkStatus();
     _backgroundTaskManager = new BackgroundTaskManager();
     _backgroundTaskManager.RegisterOnProgressEventHandler();
 }