Esempio n. 1
0
        public async Task <object> Autentica()
        {
            var authentica = new Autentica();
            var result     = await SatSoapClient.SendRevenueAsync(authentica).ConfigureAwait(continueOnCapturedContext: false);

            Logger?.Debug("Result received and successfully deserialized from XML DTOs.", result);
            return(result);
        }
Esempio n. 2
0
        public CfdiRecoveryClient(Certificate certificate, TimeSpan?httpTimeout = null, Logger logger = null)
        {
            var effectiveTimeout = httpTimeout ?? TimeSpan.FromSeconds(2);

            SatSoapClient = new SatSoapClient(certificate, effectiveTimeout, logger);
            Logger        = logger;
            SatSoapClient.HttpRequestFinished  += (sender, args) => HttpRequestFinished?.Invoke(this, args);
            SatSoapClient.XmlMessageSerialized += (sender, args) => XmlMessageSerialized?.Invoke(this, args);
        }