using System;
using System.Security.Principal;
using BO.AppServer.Business.Services.Base;
using BO.AppServer.Data.Repository;
using BO.AppServer.Metadata.Configuration;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

namespace BO.AppServer.Business.Services
{
    public class RegistrationService : UserContextService
    {

        #region *** Private fields ***

        private RegistrationRepo _repoRegistration;
        #endregion

        #region *** Constructors ***
        public RegistrationService(
            RegistrationRepo repoRegistration,
            IOptions<Configuration> config,
            UserRepo repoUser,
            UserManager<IdentityUser> userManager,
            IPrincipal currentPrincipal,
            ILoggerFactory logger) : base(config, repoUser, userManager, currentPrincipal, logger)
        {
            _repoRegistration = repoRegistration ?? throw new ArgumentNullException(nameof(repoRegistration));
        }
        #endregion

    }
}
