I'm using the titanium proxy to analyse the data trafic.
They using Task.FromResult(0) as return. My environment it was 3.5 framework.
m_proxyServer.ServerCertificateValidationCallback += OnCertificateValidation;
what can we use replace for Tasks.FromResult(0) in .NET3.5 framework, Because my environment works in 3.5 framework only.
public Task OnCertificateValidation(object sender,CertificateValidationEventArgs e)
{
//set IsValid to true/false based on Certificate Errors
e.IsValid = true;
return Task.FromResult(0);
}
I have gone through the question 40422779, But I cannot able to use async since its only .NET 3.5.