RegisterBackgroundTaskAsync() public method

Register background tasks, by the given configuration.
public RegisterBackgroundTaskAsync ( SdkConfiguration configuration ) : Task
configuration SdkConfiguration Configuration for the new registration.
return Task
 /// <summary>
 /// Registers the background task or in the case of a pending background filter update,
 /// re-registers the task.
 /// </summary>
 /// <returns>The registration result.</returns>
 public async Task <BackgroundTaskRegistrationResult> RegisterBackgroundTaskAsync()
 {
     SdkData.BackgroundTaskEnabled = true;
     return(await _backgroundTaskManager.RegisterBackgroundTaskAsync(Configuration));
 }