Class
BaseTunnel

Abstract ITunnel class with CloseTunnel implemented in a thread safe way

Definition

Namespace:Fiddler

Assembly:FiddlerCore.dll

Syntax:

cs-api-definition
public abstract class BaseTunnel : ITunnel

Inheritance: objectBaseTunnel

Derived Classes: WebSocket

Implements: ITunnel

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()

Constructors

BaseTunnel()

Declaration

cs-api-definition
protected BaseTunnel()

Properties

EgressByteCount

Total number of bytes sent

Declaration

cs-api-definition
public abstract long EgressByteCount { get; protected set; }

Property Value

long

Implements ITunnel.EgressByteCount

IngressByteCount

Total number of bytes received

Declaration

cs-api-definition
public abstract long IngressByteCount { get; protected set; }

Property Value

long

Implements ITunnel.IngressByteCount

IsOpen

Returns true if tunnel is still open

Declaration

cs-api-definition
public bool IsOpen { get; }

Property Value

bool

Implements ITunnel.IsOpen

Methods

CloseTunnelAsync()

Closes the tunnel and nulls any references that it used

Declaration

cs-api-definition
public Task CloseTunnelAsync()

Returns

Task

Task that completes when tunnel is no longer open

Implements ITunnel.CloseTunnelAsync()

DoCloseTunnelAsync()

Actually closes the tunnel and nulls any references that it used

Declaration

cs-api-definition
public abstract Task DoCloseTunnelAsync()

Returns

Task

Task that completes when tunnel is no longer open

MarkClosed()

Sets bIsOpen to 0

Declaration

cs-api-definition
protected bool MarkClosed()

Returns

bool

If bIsOpen was set to 0 before this call, returns false. Else, returns true

MarkOpened()

Sets bIsOpen to 1

Declaration

cs-api-definition
protected bool MarkOpened()

Returns

bool

If bIsOpen was set to 1 before this call, returns false. Else, returns true