예제 #1
0
 public XeroHttpClient(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user, IJsonObjectMapper jsonMapper, IXmlObjectMapper xmlMapper, IRateLimiter rateLimiter = null)
 {
     this.baseUri     = new Uri(baseUri);
     this.auth        = auth;
     this.consumer    = consumer;
     this.user        = user;
     this.rateLimiter = rateLimiter;
     this.jsonMapper  = jsonMapper;
     this.xmlMapper   = xmlMapper;
 }
예제 #2
0
 public void SetUp()
 {
     _mapper = new DefaultMapper();
 }
 public RegionalComputeProvider(IIdentityProvider identityProvider, IRestService restService, IJsonObjectMapper<Metadata> metadataMapper, IJsonObjectMapper<CreateServerRequest> createServerRequestMapper)
     : base(null, identityProvider, restService)
 {
     _metadataMapper = metadataMapper;
     _createServerRequestMapper = createServerRequestMapper;
 }
예제 #4
0
 private XeroHttpClient(IJsonObjectMapper jsonMapper, IXmlObjectMapper xmlMapper)
 {
     JsonMapper = jsonMapper;
     XmlMapper  = xmlMapper;
 }
예제 #5
0
 private XeroHttpClient(IJsonObjectMapper jsonMapper, IXmlObjectMapper xmlMapper)
 {
     JsonMapper = jsonMapper;
     XmlMapper  = xmlMapper;
     Parameters = new NameValueCollection();
 }
예제 #6
0
 public XeroCoreApi(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user,
                    IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper)
     : this(baseUri, auth, consumer, user, readMapper, writeMapper, null)
 {
 }
예제 #7
0
 public void SetUp()
 {
     _mapper = new DefaultMapper();
 }
예제 #8
0
 public XeroCoreApi(string baseUri, ICertificateAuthenticator auth, IConsumer consumer, IUser user,
     IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper)
     : this(baseUri, auth, consumer, user, readMapper, writeMapper, null)
 {
 }
 internal CloudServersProvider(CloudIdentity identity, IIdentityProvider identityProvider, IRestService restService, IJsonObjectMapper <Network> networkResponseMapper)
     : base(identity, identityProvider, restService)
 {
     _networkResponseMapper = networkResponseMapper;
 }
예제 #10
0
 public AmericanPayroll(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user,
                        IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper, ITokenStore tokenStore)
     : this(baseUri, auth, consumer, user, readMapper, writeMapper, null, tokenStore)
 {
 }
예제 #11
0
 public void SetUp()
 {
     _jsonMapper = new DefaultMapper();
     _xmlMapper  = new DefaultMapper();
 }
예제 #12
0
 public XeroHttpClient(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user, IJsonObjectMapper jsonMapper, IXmlObjectMapper xmlMapper, IRateLimiter rateLimiter, ITokenStore tokenStore)
     : this(jsonMapper, xmlMapper)
 {
     Client = new HttpClient(baseUri, tokenStore, auth, consumer, user, rateLimiter);
 }
예제 #13
0
파일: PayrollApi.cs 프로젝트: sv-dev1/Xero
 protected PayrollApi(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user, IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper, IRateLimiter rateLimiter)
     : base(baseUri, auth, consumer, user, readMapper, writeMapper, rateLimiter)
 {
 }
예제 #14
0
 public AmericanPayroll(string baseUri, ICertificateAuthenticator auth, IConsumer consumer, IUser user,
     IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper)
     : base(baseUri, auth, consumer, user, readMapper, writeMapper, null)
 {
 }
예제 #15
0
 public AustralianPayroll(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user,
     IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper)
     : this(baseUri, auth, consumer, user, readMapper, writeMapper, null)
 {
 }
예제 #16
0
        public XeroHttpClient(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user, IJsonObjectMapper jsonMapper, IXmlObjectMapper xmlMapper, IRateLimiter rateLimiter)
            : this(jsonMapper, xmlMapper)
        {
            Client = new HttpClient(baseUri, auth, consumer, user, rateLimiter);
            EventHandler <ApiCallEventArgs> apiCalledEventHander = (sender, e) => ApiCalled?.Invoke(this, e);

            Client.ApiCalled += apiCalledEventHander;
            auth.ApiCalled   += apiCalledEventHander;
        }
예제 #17
0
 public AustralianPayroll(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user, IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper, IRateLimiter rateLimiter)
     : base(baseUri, auth, consumer, user, readMapper, writeMapper, rateLimiter)
 {
     Connect();
 }
예제 #18
0
 protected XeroApi(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user, IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper, IRateLimiter rateLimiter)
     : this(baseUri)
 {
     Client            = new XeroHttpClient(baseUri, auth, consumer, user, readMapper, writeMapper, rateLimiter);
     Client.ApiCalled += (sender, e) => ApiCalled?.Invoke(this, e);
 }
예제 #19
0
 public XeroCoreApi(string baseUri, ICertificateAuthenticator auth, IConsumer consumer, IUser user, IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper, IRateLimiter rateLimiter)
     : base(baseUri, auth, consumer, user, readMapper, writeMapper, rateLimiter)
 {
     Connect();
 }
예제 #20
0
 public AustralianPayroll(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user, IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper, IRateLimiter rateLimiter, ITokenStore tokenStore)
     : base(baseUri, auth, consumer, user, readMapper, writeMapper, rateLimiter, tokenStore)
 {
     Connect();
 }
예제 #21
0
 protected PayrollApi(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user, IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper, IRateLimiter rateLimiter)
     : base(baseUri, auth, consumer, user, readMapper, writeMapper, rateLimiter)
 {
 }
예제 #22
0
 protected XeroApi(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user, IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper, IRateLimiter rateLimiter)
     : this(baseUri)
 {
     Client = new XeroHttpClient(baseUri, auth, consumer, user, readMapper, writeMapper, rateLimiter);
 }
예제 #23
0
 public XeroCoreApi(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user, IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper, IRateLimiter rateLimiter)
     : base(baseUri, auth, consumer, user, readMapper, writeMapper, rateLimiter)
 {
     Connect();
 }
예제 #24
0
 public AustralianPayroll(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user,
                          IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper)
     : this(baseUri, auth, consumer, user, readMapper, writeMapper, null)
 {
 }
예제 #25
0
 public XeroHttpClient(string baseUri, IAuthenticator auth, IConsumer consumer, IUser user,
                       IJsonObjectMapper jsonMapper, IXmlObjectMapper xmlMapper)
     : this(baseUri, auth, consumer, user, jsonMapper, xmlMapper, null)
 {
 }
예제 #26
0
 public AmericanPayroll(string baseUri, ICertificateAuthenticator auth, IConsumer consumer, IUser user, IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper, IRateLimiter rateLimiter)
     : base(baseUri, auth, consumer, user, readMapper, writeMapper, rateLimiter)
 {
     Connect();
 }
예제 #27
0
 public XeroHttpClient(string baseUri, ICertificateAuthenticator auth, IConsumer consumer, IUser user, IJsonObjectMapper jsonMapper, IXmlObjectMapper xmlMapper)
     : this(jsonMapper, xmlMapper)
 {
     Client = new HttpClient(baseUri, auth, consumer, user);
 }
예제 #28
0
 protected XeroApi(string baseUri, ICertificateAuthenticator auth, IConsumer consumer, IUser user, IJsonObjectMapper readMapper, IXmlObjectMapper writeMapper)
     : this(baseUri)
 {
     Client = new XeroHttpClient(baseUri, auth, consumer, user, readMapper, writeMapper);
 }