// this works just fine
public class OverrideCustomerService : CustomerService, ICustomerService
{
public OverrideCustomerService(ICacheManager cacheManager, IRepository<Customer> customerRepository, IRepository<CustomerRole> customerRoleRepository, IRepository<CustomerProduct> customerProductRepository, IRepository<CustomerProductPrice> customerProductPriceRepository, IRepository<CustomerHistoryPassword> customerHistoryPasswordProductRepository, IRepository<CustomerRoleProduct> customerRoleProductRepository, IRepository<CustomerNote> customerNoteRepository, IRepository<Order> orderRepository, IRepository<ForumPost> forumPostRepository, IRepository<ForumTopic> forumTopicRepository, IRepository<BlogComment> blogCommentRepository, IRepository<ProductReview> productReviewRepository, IGenericAttributeService genericAttributeService, IMediator mediator, IServiceProvider serviceProvider)
: base(cacheManager, customerRepository, customerRoleRepository, customerProductRepository, customerProductPriceRepository, customerHistoryPasswordProductRepository, customerRoleProductRepository, customerNoteRepository, orderRepository, forumPostRepository, forumTopicRepository, blogCommentRepository, productReviewRepository, genericAttributeService, mediator, serviceProvider)
{
Console.WriteLine("CustomerService override success");
}
}
[code]
// this does not work, break point is never hit
public class OverrideCustomerViewModelService : CustomerViewModelService, ICustomerViewModelService
{
public OverrideCustomerViewModelService(IExternalAuthenticationService externalAuthenticationService, ICustomerAttributeParser customerAttributeParser, ICustomerAttributeService customerAttributeService, ILocalizationService localizationService, IDateTimeHelper dateTimeHelper, INewsLetterSubscriptionService newsLetterSubscriptionService, IWorkContext workContext, IStoreContext storeContext, ICountryService countryService, IStateProvinceService stateProvinceService, IGenericAttributeService genericAttributeService, IWorkflowMessageService workflowMessageService, IReturnRequestService returnRequestService, IStoreMappingService storeMappingService, IAddressViewModelService addressViewModelService, IOrderService orderService, IDownloadService downloadService, IPictureService pictureService, IProductService productService, IAuctionService auctionService, INewsletterCategoryService newsletterCategoryService, IServiceProvider serviceProvider, CustomerSettings customerSettings, DateTimeSettings dateTimeSettings, TaxSettings taxSettings, ForumSettings forumSettings, ExternalAuthenticationSettings externalAuthenticationSettings, SecuritySettings securitySettings, CaptchaSettings captchaSettings, RewardPointsSettings rewardPointsSettings, OrderSettings orderSettings, MediaSettings mediaSettings, VendorSettings vendorSettings) : base(externalAuthenticationService, customerAttributeParser, customerAttributeService, localizationService, dateTimeHelper, newsLetterSubscriptionService, workContext, storeContext, countryService, stateProvinceService, genericAttributeService, workflowMessageService, returnRequestService, storeMappingService, addressViewModelService, orderService, downloadService, pictureService, productService, auctionService, newsletterCategoryService, serviceProvider, customerSettings, dateTimeSettings, taxSettings, forumSettings, externalAuthenticationSettings, securitySettings, captchaSettings, rewardPointsSettings, orderSettings, mediaSettings, vendorSettings)
{
Console.WriteLine("OverrideCustomerViewModelService success");
}