58 lines
2.1 KiB
C#
58 lines
2.1 KiB
C#
using AyCode.Core.Helpers;
|
|
using AyCode.Interfaces.Addresses;
|
|
using AyCode.Interfaces.Logins;
|
|
using AyCode.Interfaces.Profiles;
|
|
using AyCode.Interfaces.ServiceProviders;
|
|
using AyCode.Interfaces.Users;
|
|
|
|
namespace AyCode.Services.Logins;
|
|
|
|
public class AcLoginServiceClient<TUser, TProfile, TServiceProvider, TUserToServiceProvider, TProfileAddress>
|
|
: AcLoginServiceBase<TUser, TProfile, TServiceProvider, TUserToServiceProvider, TProfileAddress>, IAcLoginServiceClient<TUser, TProfile, TServiceProvider, TUserToServiceProvider, TProfileAddress>
|
|
|
|
where TUser : class, IAcUser<TProfile, TServiceProvider, TUserToServiceProvider, TProfileAddress>
|
|
where TProfile : class, IAcProfile<TProfileAddress>
|
|
where TServiceProvider : class, IAcServiceProviderBase
|
|
where TUserToServiceProvider : class, IAcUserToServiceProviderBase
|
|
where TProfileAddress : class, IAcAddress
|
|
{
|
|
public virtual TUser? Login(string email, string password, out string accessToken)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public virtual Task<TUser?> LoginAsync(string email, string password)
|
|
{
|
|
return TaskHelper.ToThreadPoolTask(() => Login(email, password, out _));
|
|
}
|
|
|
|
public virtual bool Logout()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public virtual Task<bool> LogoutAsync()
|
|
{
|
|
return TaskHelper.ToThreadPoolTask(Logout);
|
|
}
|
|
|
|
public virtual TUser? Registration(string email, string password, string? phoneNumber = null)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public TUser? Registration(Guid userId, string email, string password, string? phoneNumber = null)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public virtual Task<TUser?> RegistrationAsync(string email, string password, string? phoneNumber = null)
|
|
{
|
|
return TaskHelper.ToThreadPoolTask(() => Registration(email, password, phoneNumber));
|
|
}
|
|
|
|
public Task<TUser?> RegistrationAsync(Guid userId, string email, string password, string? phoneNumber = null)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
} |