internal bool OnAgentRequesting(HttpRequest request, HttpResponse response, Servers.ServerAgent server, Routes.UrlRoute urlRoute) { if (AgentRequesting != null) { EventAgentRequestingArgs e = new EventAgentRequestingArgs(request, response, this, server, urlRoute); e.Cancel = false; AgentRequesting?.Invoke(this, e); return(!e.Cancel); } return(true); }
public void Execute(EventAgentRequestingArgs e) { Console.WriteLine($"{e.Request.Url}"); }
public void Execute(EventAgentRequestingArgs e) { Console.WriteLine("AgentRequestingTest"); }