Class
ListenerInfo

Base class used by RequestListenerInfo and ResponseListenerInfo

Definition

Namespace:ArtOfTest.WebAii.Messaging.Http

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public abstract class ListenerInfo

Inheritance: objectListenerInfo

Derived Classes: RequestListenerInfoResponseListenerInfo

Properties

Guid

Gets the guid of the event handler wrapped by this ListenerInfo object

Declaration

cs-api-definition
public Guid Guid { get; protected set; }

Property Value

Guid

UriFilter

Gets / Sets the wildcard string used to filter request URIs before firing this listener's handler delegate

Declaration

cs-api-definition
public string UriFilter { get; set; }

Property Value

string

Methods

Equals(object)

Determines whether this ListenerInfo object describes the same event handler delegate as another

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare this one to

Returns

bool

True if the objects are equivalent enough for our purposes (tracking them in the lists of listeners subscribed to proxy events)

Overrides object.Equals(object)

Remarks

Two listeners are considered equivalent if they have the same guid for their event handler, are listening to the same type of event, and have the same wildcard filter for request URIs.

GetHashCode()

Calculates and returns the hashcode for this object.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

The calculated hashcode.

Overrides object.GetHashCode()

MatchesUri(string)

Determines whether this listener's filter matches a given URI

Declaration

cs-api-definition
public bool MatchesUri(string uri)

Parameters

uri

string

The URI to check this listener's filter against

Returns

bool

True if the filter matches, false if it doesn't