Exemple #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;
        }
Exemple #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);
        }