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
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SessionEventArgsBase(ProxyServer, ProxyEndPoint, CancellationTokenSource, Request)
  
  
  Declaration
  
    protected SessionEventArgsBase(ProxyServer server, ProxyEndPoint endPoint, CancellationTokenSource cancellationTokenSource, Request request)
   
  Parameters
  
  Fields
  
  
    |
    Improve this Doc
  
  
    View Source
  
  bufferPool
  
  
  Declaration
  
    protected readonly IBufferPool bufferPool
   
  Field Value
  
    
      
        | Type | Description | 
    
    
      
        | StreamExtended.IBufferPool |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  bufferSize
  
  
  Declaration
  
    protected readonly int bufferSize
   
  Field Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  exceptionFunc
  
  
  Declaration
  
    protected readonly ExceptionHandler exceptionFunc
   
  Field Value
  
  Properties
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ClientEndPoint
  
  
  Declaration
  
    public IPEndPoint ClientEndPoint { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CustomUpStreamProxyUsed
  Are we using a custom upstream HTTP(S) proxy?
Declaration
  
    public ExternalProxy CustomUpStreamProxyUsed { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Exception
  The last exception that happened.
Declaration
  
    public Exception Exception { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  IsHttps
  Does this session uses SSL?
Declaration
  
    public bool IsHttps { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  IsTransparent
  Is this a transparent endpoint?
Declaration
  
    public bool IsTransparent { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  LocalEndPoint
  Local endpoint via which we make the request.
Declaration
  
    public ProxyEndPoint LocalEndPoint { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  TimeLine
  Relative milliseconds for various events.
Declaration
  
    public Dictionary<string, DateTime> TimeLine { get; set; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  UserData
  Returns a user data for this request/response session which is
same as the user data of WebSession.
Declaration
  
    public object UserData { get; set; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  WebSession
  A web session corresponding to a single request/response sequence
within a proxy connection.
Declaration
  
    public HttpWebClient WebSession { get; }
   
  Property Value
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Dispose()
  
  
  Declaration
  
    public virtual void Dispose()
   
  
    |
    Improve this Doc
  
  
    View Source
  
  
  TerminateSession()
  Terminates the session abruptly by terminating client/server connections.
Declaration
  
    public void TerminateSession()
   
  Events
  
  
    |
    Improve this Doc
  
  
    View Source
  
  DataReceived
  Fired when data is received within this session from client/server.
Declaration
  
    public event EventHandler<DataEventArgs> DataReceived
   
  Event Type
  
    
      
        | Type | Description | 
    
    
      
        | EventHandler<StreamExtended.Network.DataEventArgs> |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  DataSent
  Fired when data is sent within this session to server/client.
Declaration
  
    public event EventHandler<DataEventArgs> DataSent
   
  Event Type
  
    
      
        | Type | Description | 
    
    
      
        | EventHandler<StreamExtended.Network.DataEventArgs> |  | 
    
  
  Implements