December 2019
Intermediate to advanced
510 pages
11h 33m
English
After defining the User entity and the IUserRepository interface, we can proceed with the definition of the service layer in the Catalog.Domain project. Let's start by describing the IUserService interface:
using System.Threading;using System.Threading.Tasks;using Catalog.Domain.Repositories;using Catalog.Domain.Requests.User;using Catalog.Domain.Responses;namespace Catalog.Domain.Services{ public interface IUserService { Task<UserResponse> GetUserAsync(GetUserRequest request, CancellationToken cancellationToken = default); Task<UserResponse> SignUpAsync(SignUpRequest request, CancellationToken cancellationToken = default); Task<TokenResponse> SignInAsync(SignInRequest request, CancellationToken cancellationToken ...