Activation service
This commit is contained in:
@@ -4,11 +4,12 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VDownload.Services.Common;
|
||||
using VDownload.Services.Data.Configuration;
|
||||
|
||||
namespace VDownload.Services.Data.Application
|
||||
{
|
||||
public interface IApplicationDataService
|
||||
public interface IApplicationDataService : IInitializableService
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
@@ -73,6 +74,8 @@ namespace VDownload.Services.Data.Application
|
||||
|
||||
#region PUBLIC METHODS
|
||||
|
||||
public async Task Initialize() => await Load();
|
||||
|
||||
public async Task Load()
|
||||
{
|
||||
if (File.Exists(_filePath))
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\VDownload.Services.Common\VDownload.Services.Common.csproj" />
|
||||
<ProjectReference Include="..\VDownload.Services.Data.Configuration\VDownload.Services.Data.Configuration.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -4,11 +4,12 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VDownload.Services.Common;
|
||||
using VDownload.Services.Data.Configuration;
|
||||
|
||||
namespace VDownload.Services.Data.Authentication
|
||||
{
|
||||
public interface IAuthenticationDataService
|
||||
public interface IAuthenticationDataService : IInitializableService
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
@@ -70,6 +71,8 @@ namespace VDownload.Services.Data.Authentication
|
||||
|
||||
#region PUBLIC METHODS
|
||||
|
||||
public async Task Initialize() => await Load();
|
||||
|
||||
public async Task Load()
|
||||
{
|
||||
Data = null;
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\VDownload.Services.Common\VDownload.Services.Common.csproj" />
|
||||
<ProjectReference Include="..\VDownload.Services.Data.Configuration\VDownload.Services.Data.Configuration.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -4,11 +4,12 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VDownload.Services.Common;
|
||||
using VDownload.Services.Data.Configuration;
|
||||
|
||||
namespace VDownload.Services.Data.Settings
|
||||
{
|
||||
public interface ISettingsService
|
||||
public interface ISettingsService : IInitializableService
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
@@ -73,6 +74,8 @@ namespace VDownload.Services.Data.Settings
|
||||
|
||||
#region PUBLIC METHODS
|
||||
|
||||
public async Task Initialize() => await Load();
|
||||
|
||||
public async Task Load()
|
||||
{
|
||||
if (File.Exists(_filePath))
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\VDownload.Models\VDownload.Models.csproj" />
|
||||
<ProjectReference Include="..\..\..\VDownload.Sources\VDownload.Sources.Twitch\VDownload.Sources.Twitch.Settings\VDownload.Sources.Twitch.Settings.csproj" />
|
||||
<ProjectReference Include="..\..\VDownload.Services.Common\VDownload.Services.Common.csproj" />
|
||||
<ProjectReference Include="..\VDownload.Services.Data.Configuration\VDownload.Services.Data.Configuration.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -2,13 +2,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using VDownload.Services.Common;
|
||||
using VDownload.Services.Data.Configuration;
|
||||
|
||||
namespace VDownload.Services.Data.Subscriptions
|
||||
{
|
||||
public interface ISubscriptionsDataService
|
||||
public interface ISubscriptionsDataService : IInitializableService
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
@@ -72,6 +74,8 @@ namespace VDownload.Services.Data.Subscriptions
|
||||
|
||||
#region PUBLIC METHODS
|
||||
|
||||
public async Task Initialize() => await Load();
|
||||
|
||||
public async Task Load()
|
||||
{
|
||||
if (File.Exists(_filePath))
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\VDownload.Models\VDownload.Models.csproj" />
|
||||
<ProjectReference Include="..\..\VDownload.Services.Common\VDownload.Services.Common.csproj" />
|
||||
<ProjectReference Include="..\VDownload.Services.Data.Configuration\VDownload.Services.Data.Configuration.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user