I have the following service:
class SalesChannelService
{
private static readonly ILog log = Logger.GetLog(typeof(SalesChannelService));
protected readonly ProgressManager _progressManager;
private readonly ISalesChannelService _salesChannelService;
public SalesChannelService(SalesChannelServiceFactory.SalesChannelServiceType salesChannel)
{
_salesChannelService = SalesChannelServiceFactory.GetSalesChannelService(salesChannel);
}
public IList<Order> GetSalesChannelOrders()
{
return _salesChannelService.GetSalesChannelOrders();
}
}
Do you think this is the correct approach instead of of creating multiple SalesChannelServices for each implementation of the ISalesChannelService?
Or is there some other pattern that suits this?
Thanks Neil