syntaxe delegate BindIPEndPointDelegate
Bonjour,
Je ne parviens pas à trouver la syntaxe correcte pour affecter une méthode à la propriété BindIPEndPointDelegate d'un HttpWebRequest :
Mon delegate est la méthode BindIPEndPointCallBack.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
private: delegate IPEndPoint^ MyBindIpEndPointDelegate(
ServicePoint^ servicePoint,
IPEndPoint^ remoteEndPoint,
int retryCount
);
EndPoint^ BindIPEndPointCallBack(ServicePoint^ servicePoint, IPEndPoint^ remoteEndPoint, int retryCount)
{
return nullptr;
}
SendRequestInterface(String^ url, int timeout)
{
HttpWebRequest^ request = static_cast<HttpWebRequest^>(HttpWebRequest::Create(url));
request->ServicePoint->BindIPEndPointDelegate = [...]
[...]
} |
En vous remerciant par avance