C# Class Appccelerate.EventBroker.Matchers.Scope.PublishToParents

Matcher for publications to parents only.
Inheritance: IPublicationMatcher
显示文件 Open project: appccelerate/appccelerate

Public Methods

Method Description
DescribeTo ( System writer ) : void

Describes this scope 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.

This is the case if the name of the subscriber is a prefix to the name of the publisher.

Method Details

DescribeTo() public method

Describes this scope matcher.
public DescribeTo ( System writer ) : void
writer System 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.

This is the case if the name of the subscriber is a prefix to the name of the publisher.

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