December 2019
Intermediate to advanced
510 pages
11h 33m
English
In the previous few sections, we created the IArtistService and IGenreService interfaces, and their corresponding implementations. Therefore, we want to update the dependency graph of the application. Although we have already called the AddMappers and AddServices extension methods of the DependenciesRegistration static class in the ConfigureService method, we need to update the dependencies in the following way:
public static class DependenciesRegistration { ... public static IServiceCollection AddServices(this IServiceCollection services) { services .AddScoped<IItemService, ItemService>() .AddScoped<IArtistService, ArtistService>() .AddScoped<IGenreService, GenreService>(); return services; ...
Read now
Unlock full access