Class SessionEventArgsBase
Holds info related to a single proxy session (single request/response sequence)
A proxy session is bounded to a single connection from client
A proxy session ends when client terminates connection to proxy
or when server terminates connection from proxy
Inheritance
SessionEventArgsBase
Assembly: Titanium.Web.Proxy.dll
Syntax
public abstract class SessionEventArgsBase : EventArgs, IDisposable
Constructors
SessionEventArgsBase(Int32, ProxyEndPoint, CancellationTokenSource, Request, ExceptionHandler)
Declaration
protected SessionEventArgsBase(int bufferSize, ProxyEndPoint endPoint, CancellationTokenSource cancellationTokenSource, Request request, ExceptionHandler exceptionFunc)
Parameters
Fields
BufferSize
Size of Buffers used by this object
Declaration
protected readonly int BufferSize
Field Value
ExceptionFunc
Declaration
protected readonly ExceptionHandler ExceptionFunc
Field Value
Properties
ClientEndPoint
Declaration
public IPEndPoint ClientEndPoint { get; }
Property Value
CustomUpStreamProxyUsed
Are we using a custom upstream HTTP(S) proxy?
Declaration
public ExternalProxy CustomUpStreamProxyUsed { get; }
Property Value
Exception
Declaration
public Exception Exception { get; }
Property Value
Id
Returns a unique Id for this request/response session
same as RequestId of WebSession
Declaration
Property Value
IsHttps
Does this session uses SSL
Declaration
public bool IsHttps { get; }
Property Value
IsTransparent
Declaration
public bool IsTransparent { get; }
Property Value
LocalEndPoint
Declaration
public ProxyEndPoint LocalEndPoint { get; }
Property Value
WebSession
A web session corresponding to a single request/response sequence
within a proxy connection
Declaration
public HttpWebClient WebSession { get; }
Property Value
Methods
Dispose()
implement any cleanup here
Declaration
public virtual void Dispose()
TerminateSession()
Terminates the session abruptly by terminating client/server connections
Declaration
public void TerminateSession()
Events
DataReceived
Declaration
public event EventHandler<DataEventArgs> DataReceived
Event Type
DataSent
Declaration
public event EventHandler<DataEventArgs> DataSent
Event Type
Implements