Click or drag to resize

Publisher Class

Manages delegate event registration and invocation
Inheritance Hierarchy
SystemObject
  EventsPlusPublisher
    More...

Namespace:  EventsPlus
Assembly:  EventsPlus (in EventsPlus.dll) Version: 1.0.6794.2298
Syntax
C#
[SerializableAttribute]
public class Publisher

The Publisher type exposes the following members.

Constructors
  NameDescription
Public methodPublisher
Initializes the _tag
Top
Properties
  NameDescription
Public propertycalls
Gets/sets the _calls array
Public propertytag
Gets the _tag key that is bound to this instance
Public propertytypes
Gets array of Types that define this instance; this is used by the inspector to manage drop-downs
Top
Methods
  NameDescription
Public methodaddCall
Attempts to add a RawCall to the Publisher's internal array and event(s)
Public methodaddRequest
Attempts to add a RawRequest to the Publisher's internal tracker and event(s)
Protected methodeffectsCallAdded
Handles the RawCall that was added and registers its delegate to the Publisher's matching event(s)
Protected methodeffectsCallRemoved
Handles the RawCall that was removed and removes its delegate from the Publisher's matching event(s)
Protected methodeffectsRequestAdded
Handles the RawRequest that was added and registers its delegate to the Publisher's matching event(s)
Protected methodeffectsRequestRemoved
Handles the RawRequest that was removed and removes its delegate from the Publisher's matching event(s)
Protected methodFinalize
Unregisters from Subscriber instances and clears memory usage
(Overrides ObjectFinalize.)
Public methodinitialize
Initializes _calls and registers with any potential Subscriber instances
Protected methodonSubscriberDestroyed
Callback for when a Subscriber is destroyed; this will attempt to remove all of the Subscriber's event requests
Public methodonSubscriberLoaded
Callback for when a Subscriber is loaded; this will attempt to add all of the Subscriber's event requests
Public methodpublish
Invokes the onVoid event
Public methodremoveCall(Int32)
Attempts to remove a RawCall from the Publisher's internal array
Public methodremoveCall(RawCall)
Attempts to remove a RawCall from the Publisher's internal array and event(s)
Public methodremoveRequest
Attempts to remove a RawRequest from the Publisher's internal tracker and event(s)
Top
Events
  NameDescription
Public eventStatic memberOnLoaded
Global event that gets fired when a Publisher is instantiated
Public eventonVoid
Event for 0-Parameter delegates and calls
Top
Fields
  NameDescription
Protected field_calls
List of raw RawCall objects that this Publisher invokes using predefined arguments
Protected field_tag
Immutable tag key that is used to wire up events with a Subscriber
Protected fieldrequests
Managed RawRequest tracker for handling event wiring a Subscriber
Top
See Also
Inheritance Hierarchy
SystemObject
  EventsPlusPublisher
    EventsPlusPublisherA
    EventsPlusPublisherA, B, C, D, E, F, G, H, I, J
    EventsPlusPublisherA, B
    EventsPlusPublisherA, B, C
    EventsPlusPublisherA, B, C, D
    EventsPlusPublisherA, B, C, D, E
    EventsPlusPublisherA, B, C, D, E, F
    EventsPlusPublisherA, B, C, D, E, F, G
    EventsPlusPublisherA, B, C, D, E, F, G, H
    EventsPlusPublisherA, B, C, D, E, F, G, H, I