C# Class Appccelerate.EventBroker.Matchers.NotAlreadyCanceled

Subscription matcher that matches only if the event arguments are CancelEventArgs and the event arguments are not yet canceled.
Inheritance: ISubscriptionMatcher
Show file Open project: appccelerate/appccelerate

Public Methods

Method Description
DescribeTo ( TextWriter writer ) : void

Describes this subscription matcher.

Match ( IPublication publication, ISubscription subscription, EventArgs e ) : bool

Returns whether the publication and subscription match and the event published by the publisher will be relayed to the subscriber.

Matches if the event arguments are CancelEventArgs that are not yet canceled.

Method Details

DescribeTo() public method

Describes this subscription matcher.
public DescribeTo ( TextWriter writer ) : void
writer System.IO.TextWriter The writer the description is written to.
return void

Match() public method

Returns whether the publication and subscription match and the event published by the publisher will be relayed to the subscriber.

Matches if the event arguments are CancelEventArgs that are not yet canceled.

public Match ( IPublication publication, ISubscription subscription, EventArgs e ) : bool
publication IPublication The publication.
subscription ISubscription The subscription.
e System.EventArgs The instance containing the event data.
return bool