Removal of background task service from core.
This commit is contained in:
@@ -1,50 +1,13 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Windows.Storage;
|
||||
using Windows.Storage;
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
|
||||
namespace Wino.Core.UWP.Services
|
||||
{
|
||||
public class AppInitializerService : IAppInitializerService
|
||||
{
|
||||
private readonly IBackgroundTaskService _backgroundTaskService;
|
||||
public const string SharedFolderName = "WinoShared";
|
||||
|
||||
public AppInitializerService(IBackgroundTaskService backgroundTaskService)
|
||||
{
|
||||
_backgroundTaskService = backgroundTaskService;
|
||||
}
|
||||
|
||||
public string GetPublisherSharedFolder() => ApplicationData.Current.GetPublisherCacheFolder("WinoShared").Path;
|
||||
public string GetPublisherSharedFolder() => ApplicationData.Current.GetPublisherCacheFolder(SharedFolderName).Path;
|
||||
public string GetApplicationDataFolder() => ApplicationData.Current.LocalFolder.Path;
|
||||
|
||||
public Task MigrateAsync()
|
||||
{
|
||||
UnregisterAllBackgroundTasks();
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
#region 1.6.8 -> 1.6.9
|
||||
|
||||
private void UnregisterAllBackgroundTasks()
|
||||
{
|
||||
_backgroundTaskService.UnregisterAllBackgroundTask();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 1.7.0
|
||||
|
||||
/// <summary>
|
||||
/// We decided to use publisher cache folder as a database going forward.
|
||||
/// This migration will move the file from application local folder and delete it.
|
||||
/// Going forward database will be initialized from publisher cache folder.
|
||||
/// </summary>
|
||||
private async Task MoveExistingDatabaseToSharedCacheFolderAsync()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user