Exemplo n.º 1
0
        static IProvider GetProviderImplementation(Data.Provider provider, ICatalogService service, ICrawlerService crawlerService)
        {
            IProvider retVal = null;
            switch (provider.ProviderID)
            {
                case 1:
                    retVal = new LinkShareFfpProvider();
                    break;
                case 2:
                    retVal = new LinkShareWebServiceProvider();
                    break;
                case 3:
                    retVal = new CommissionJunctionWebServiceProvider(provider, service, crawlerService);
                    break;
                default:
                    break;
            }

            return retVal;
        }
Exemplo n.º 2
0
        static IProvider GetProviderImplementation(Data.Provider provider, ICatalogService service, ICrawlerService crawlerService)
        {
            IProvider retVal = null;

            switch (provider.ProviderID)
            {
            case 1:
                retVal = new LinkShareFfpProvider();
                break;

            case 2:
                retVal = new LinkShareWebServiceProvider();
                break;

            case 3:
                retVal = new CommissionJunctionWebServiceProvider(provider, service, crawlerService);
                break;

            default:
                break;
            }

            return(retVal);
        }