bool HandleAuthentication (CFHTTPMessage request, CFHTTPMessage response, CFHTTPMessage.AuthenticationScheme scheme, NetworkCredential credential) { bool forProxy = response.ResponseStatusCode == HttpStatusCode.ProxyAuthenticationRequired; return request.AddAuthentication ( response, (NSString)credential.UserName, (NSString)credential.Password, scheme, forProxy); }