24 lines
1.2 KiB
C#
24 lines
1.2 KiB
C#
using System.Net;
|
|
using AyCode.Interfaces.Addresses;
|
|
using AyCode.Interfaces.Logins;
|
|
using AyCode.Interfaces.Profiles;
|
|
using AyCode.Interfaces.ServiceProviders;
|
|
using AyCode.Interfaces.Users;
|
|
|
|
namespace AyCode.Interfaces.Server.Logins;
|
|
|
|
public interface IAcLoginServiceServer<TResultLoggedInModel, TUser, TUserToken, TProfile, TServiceProvider, TUserToServiceProvider, TProfileAddress> : IAcLoginServiceCommon<TUser, TProfile, TServiceProvider, TUserToServiceProvider, TProfileAddress>
|
|
where TResultLoggedInModel: class, IAcLoggedInModelBase<TUser, TUserToken, TProfile, TServiceProvider, TUserToServiceProvider, TProfileAddress>
|
|
|
|
where TUser : class, IAcUser<TProfile, TServiceProvider, TUserToServiceProvider, TProfileAddress>
|
|
where TUserToken : class, IAcUserTokenBase
|
|
where TProfile : class, IAcProfile<TProfileAddress>
|
|
where TServiceProvider : class, IAcServiceProviderBase
|
|
where TUserToServiceProvider : class, IAcUserToServiceProviderBase
|
|
where TProfileAddress : class, IAcAddress
|
|
{
|
|
public TResultLoggedInModel? LoggedInModel { get; }
|
|
|
|
public TResultLoggedInModel Login(string? email, string password);
|
|
public Task<TResultLoggedInModel> LoginAsync(string? email, string password);
|
|
} |