Commit b5beee65 authored by Paul S's avatar Paul S

Expose the endpoint that the request came in via with SessionEventArgs

parent a5cf4094
...@@ -95,6 +95,8 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -95,6 +95,8 @@ namespace Titanium.Web.Proxy.EventArguments
public event EventHandler<DataEventArgs> DataReceived; public event EventHandler<DataEventArgs> DataReceived;
public ProxyEndPoint LocalEndPoint;
/// <summary> /// <summary>
/// Constructor to initialize the proxy /// Constructor to initialize the proxy
/// </summary> /// </summary>
...@@ -107,6 +109,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -107,6 +109,7 @@ namespace Titanium.Web.Proxy.EventArguments
ProxyClient = new ProxyClient(); ProxyClient = new ProxyClient();
WebSession = new HttpWebClient(bufferSize); WebSession = new HttpWebClient(bufferSize);
LocalEndPoint = endPoint;
WebSession.ProcessId = new Lazy<int>(() => WebSession.ProcessId = new Lazy<int>(() =>
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment