mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 09:33:13 +00:00
23 lines
795 B
C#
23 lines
795 B
C#
using Microsoft.Extensions.Options;
|
|
using SeaHaven.DataServices.Interfaces;
|
|
using SeaHaven.Services.Configuration;
|
|
using SeaHaven.Services.Interfaces;
|
|
|
|
namespace SeaHaven.Services.Implementation;
|
|
|
|
public sealed class AccountOwnerDesignationService : IAccountOwnerDesignationService
|
|
{
|
|
private readonly IAccountOwnerDataService _dataService;
|
|
private readonly IOptions<AccountOwnerOptions> _options;
|
|
|
|
public AccountOwnerDesignationService(
|
|
IAccountOwnerDataService dataService,
|
|
IOptions<AccountOwnerOptions> options)
|
|
{
|
|
_dataService = dataService;
|
|
_options = options;
|
|
}
|
|
|
|
public Task EnsureConfiguredOwnerAsync(CancellationToken cancellationToken) =>
|
|
_dataService.EnsureConfiguredOwnerAsync(_options.Value.UserId, cancellationToken);
|
|
}
|