public SoapClient(Uri endpointUri, X509Certificate2 certificate, SignAlgorithm signAlgorithm = SignAlgorithm.Sha256) { HttpClient = new SoapHttpClient(endpointUri); Certificate = certificate; SignAlgorithm = signAlgorithm; XmlManipulator = new XmlManipulator(); }
public SoapClient(Uri endpointUri, Certificate certificate, TimeSpan httpTimeout, SignAlgorithm signAlgorithm = SignAlgorithm.Sha256, EetLogger logger = null) { HttpClient = new SoapHttpClient(endpointUri, httpTimeout, logger); Certificate = certificate; SignAlgorithm = signAlgorithm; XmlManipulator = new XmlManipulator(); Logger = logger; HttpClient.HttpRequestFinished += (sender, args) => HttpRequestFinished?.Invoke(this, args); }