ThinkGeo.com    |     Documentation    |     Premium Support

WMS - SendingWebRequest - Cancel

MapSuite Team,

What does SendingWebRequestEventArgs.Cancel do if set to true within the SendingWebRequest event?

I was hoping that it would cancel the current WebRequest plus all pending WebRequests.

It’s important for my application to be able to totally cancel all pending requests for imagery once it knows that a WebRequest has failed. Once one WebRequest has failed I want no more requests made until the application determines that it is appropriate to begin making requests.

Another thought – are pending request for WMS Imagery cancelled one the IsVisible property for the layer is set false?

Thanks,
Dennis
OriStar Mapping, Inc.

Hi Dennis,

Set SendingWebRequestEventArgs.Cancel equal true will make the tile equal null, and the request won’t been sent.

The isvisible for layer don’t related with the pending request, because under multiply mode, when the logic go into tile draw, set isvisible for layer cannot stop the process, that only won’t show image on map. If the logic hadn’t go into the draw function, the request won’t be sent. Because we cannot make sure when you set this property, so if want to make sure the request is cancel, please handle it in event.

Regards,

Ethan