protected DataProviderSimpleBaseTyped(IEbayServiceProvider serviceProvider)
     : base(new DataProviderCreationInfo(serviceProvider))
 {
 }
 public DataProviderFetchToken(IEbayServiceProvider serviceProvider)
     : base(serviceProvider)
 {
 }
 public DataProviderSessionID(IEbayServiceProvider serviceProvider)
     : base(serviceProvider)
 {
 }
Beispiel #4
0
 public DataProviderCreationInfo(IEbayServiceProvider serviceProvider, IServiceTokenProvider serviceTokenProvider = null, IEbayMarketplaceSettings settings = null)
 {
     ServiceTokenProvider = serviceTokenProvider;
     ServiceProvider      = serviceProvider;
     Settings             = settings;
 }
Beispiel #5
0
 public Url GetEndPoint(IEbayServiceProvider serviceProvider)
 {
     return(_ServiceEndPointFactory.Create(serviceProvider.ServiceType, EndPointType));
 }
 public DataProviderConfirmIdentity(IEbayServiceProvider serviceProvider)
     : base(serviceProvider)
 {
 }
 public ServiceTokenProviderBySession(IEbayServiceProvider serviceProvider, IServiceSignInUrlFactory serviceSignInUrlFactory, IWaitWebResponseProvider waitWebResponseProvider)
 {
     _ServiceProvider         = serviceProvider;
     _ServiceSignInUrlFactory = serviceSignInUrlFactory;
     _WaitWebResponseProvider = waitWebResponseProvider;
 }
 public EbayServiceDataProvider(EbayServiceConnectionInfo info)
 {
     _ServiceProvider = new EbayTradingServiceProvider(info);
 }
Beispiel #9
0
        public static IDataProviderBaseTyped <TRezult, TParams> Create <TRezult, TParams>(IEbayServiceProvider serviceProvider, IServiceTokenProvider tokenProvider, CallProcedureTypeTokenDependent callProcedureType)
            where TRezult : IResultDataInfo
            where TParams : IParamsDataInfo
        {
            switch (callProcedureType.Type)
            {
            case CallProcedureTypeEnum.ConfirmIdentity:
                return(new DataProviderConfirmIdentity(serviceProvider) as IDataProviderBaseTyped <TRezult, TParams>);

            default:
                throw new NotImplementedException();
            }
        }
Beispiel #10
0
        public static IDataProviderBaseTyped <TRezult, TParams> Create <TRezult, TParams>(IEbayServiceProvider serviceProvider, CallProcedureTypeSimple callProcedureType)
            where TRezult : IResultDataInfo
            where TParams : IParamsDataInfo
        {
            switch (callProcedureType.Type)
            {
            case CallProcedureTypeEnum.ConfirmIdentity:
                return(new DataProviderConfirmIdentity(serviceProvider) as IDataProviderBaseTyped <TRezult, TParams>);

            case CallProcedureTypeEnum.FetchToken:
                return(new DataProviderFetchToken(serviceProvider) as IDataProviderBaseTyped <TRezult, TParams>);

            case CallProcedureTypeEnum.GetSessionId:
                return(new DataProviderSessionID(serviceProvider) as IDataProviderBaseTyped <TRezult, TParams>);

            default:
                throw new NotImplementedException();
            }
        }