Is it possible to trigger the below code by using a trigger URL? As opposed to triggering by visiting the URL in the browser.
var context = listener.GetContext();
Something like this?
var triggerURL = "http://www.google.ie/";
var request = (HttpWebRequest)WebRequest.Create(triggerURL);
Or is it possible to use a do while loop? I.E do create trigger while get context
Instead of using
listener.GetContext()
, I was able to satisfy my requirement by usinglistener.BeginGetContext(new AsyncCallback(ListenerCallback), listener)
andlistener.EndGetContext(result)
, utilising the Asynchronous call,GetAsync
.