As you can see this service does not imeplement any service interface. This is OK for components you dont think you would need to offer more than one implementation. Principles: YAGNI and KISS :-)
示例#1
0
		public ProductController(CategoryService categoryService, IProductService productService)
		{
			this.categoryService = categoryService;
			this.productService = productService;
		}
示例#2
0
		public HomeController(IRecommendationService recommendationService, CategoryService categoryService)
		{
			this.recommendationService = recommendationService;
			this.categoryService = categoryService;
		}