Click or drag to resize

PublisherBase Class

Manages and invokes Subscriptions as well as predefined calls
Inheritance Hierarchy

Namespace:  EventsPlus
Assembly:  EventsPlus (in EventsPlus.dll) Version: 1.0.6678.17824
Syntax
C#
public abstract class PublisherBase : IPublisher

The PublisherBase type exposes the following members.

Constructors
  NameDescription
Public methodPublisherBase
Initializes a new instance of the PublisherBase class
Public methodPublisherBase(String)
Initializes a new instance of the PublisherBase class
Top
Properties
  NameDescription
Public propertysubscriptions
Public propertytag
Gets tag name, converts tag into hash and registers it to the manager
Public propertytagHash
Public propertytypeArray
Gets array of Types that define this instance, returns null if not generic
Top
Methods
  NameDescription
Public methodaddDelegate
Attempts to register a delegate directly if it is valid
Public methodaddSubscription
Adds a Subscription and registers it to the internal event if it passes validation
Public methodclear
Unregisters from Manager, clears and unsubscribes all Subscriptions from memory
Protected methodFinalize (Overrides ObjectFinalize.)
Public methodhasSubscription
Checks if this already contains a managed Subscription
Public methodinitialize
Initializes and registers with the Manager
Public methodpublish
Invokes the _onVoid event
Public methodremoveDelegate
Attempts to unregister a delegate directly if it is valid
Public methodremoveSubscription
Removes a Subscription and unregisters it to the internal event
Public methodvalidateSubscription
Checks to see if a Subscription is valid in relationship to this Publisher and its Subscriber
Top
Events
  NameDescription
Public eventonVoid
Top
Fields
  NameDescription
Protected field_onVoid
Actual delegate for void methods and predefined calls
Protected field_subscriptions
Managed Subscriptions
Protected field_tag
Immutable tag hash that is used by the Manager to automatically match Requests
Protected field_tagHash
Immutable tag hash set by tag
Top
See Also