Commit e3ccc248 authored by Paul S's avatar Paul S

Expose the endpoint that the request came in via with SessionEventArgs

parent 785fadb5
......@@ -95,6 +95,8 @@ namespace Titanium.Web.Proxy.EventArguments
public event EventHandler<DataEventArgs> DataReceived;
public ProxyEndPoint LocalEndPoint;
/// <summary>
/// Constructor to initialize the proxy
/// </summary>
......@@ -107,6 +109,7 @@ namespace Titanium.Web.Proxy.EventArguments
ProxyClient = new ProxyClient();
WebSession = new HttpWebClient(bufferSize);
LocalEndPoint = endPoint;
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