As is mentioned in the doc , I can override a service class , but can I add a method to it? I have tried to implement the interface but it ditn't work .
public interface IMyIdentityUserAppService : IIdentityUserAppService
{
Task<ListResultDto<IdentityUserDto>> FindByJobsAsync(int jobs);
}
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IIdentityUserAppService), typeof(IdentityUserAppService), typeof(MyIdentityUserAppService))]
public class MyIdentityUserAppService : IdentityUserAppService, IMyIdentityUserAppService
{
//...
public MyIdentityUserAppService(
IdentityUserManager userManager,
IIdentityUserRepository userRepository,
IIdentityRoleRepository roleRepository,
IOptions<IdentityOptions> identityOptions
) : base(
userManager,
userRepository,
roleRepository,
identityOptions)
{
}
public Task<ListResultDto<IdentityUserDto>> FindByJobsAsync(int jobs)
{
throw new NotImplementedException();
}
}