Click or drag to resize

RequestPenNumbersEvent Class

The event commands RAYGUIDE to retrieve a list of all pen numbers that are used by the job element with the given label in the currently active job.

Parameter: A duple containing:

string jobElementLabel: The label of the job element where the pen numbers are to be retrieved.

Action<string> callback method: A method that will be called when the data is retrieved; the requested data will be in its parameter.

Inheritance Hierarchy
SystemObject
  EventBase
    PubSubEventValueTupleString, ActionString
      RAYLASE.Marker.GUI.EventsRequestPenNumbersEvent

Namespace: RAYLASE.Marker.GUI.Events
Assembly: RAYLASE.Marker.GUI.Events (in RAYLASE.Marker.GUI.Events.dll) Version: 2.19.0
Syntax
C#
public class RequestPenNumbersEvent : PubSubEvent<(string , Action<string> )>

The RequestPenNumbersEvent type exposes the following members.

Constructors
 NameDescription
Public methodRequestPenNumbersEventInitializes a new instance of the RequestPenNumbersEvent class
Top
Properties
 NameDescription
Protected propertySubscriptions Gets the list of current subscriptions.
(Inherited from EventBase)
Public propertySynchronizationContext Allows the SynchronizationContext to be set by the EventAggregator for UI Thread Dispatching
(Inherited from EventBase)
Top
Methods
 NameDescription
Public methodContains(ActionUTP) Returns if there is a subscriber matching ActionT.
(Inherited from PubSubEventValueTupleString, ActionString)
Public methodContains(SubscriptionToken) Returns if there is a subscriber matching SubscriptionToken.
(Inherited from EventBase)
Protected methodInternalPublish Calls all the execution strategies exposed by the list of IEventSubscription.
(Inherited from EventBase)
Protected methodInternalSubscribe Adds the specified IEventSubscription to the subscribers' collection.
(Inherited from EventBase)
Public methodPrune Forces the PubSubEvent to remove any subscriptions that no longer have an execution strategy.
(Inherited from EventBase)
Public methodPublish Publishes the PubSubEvent.
(Inherited from PubSubEventValueTupleString, ActionString)
Public methodSubscribe(ActionUTP) Subscribes a delegate to an event that will be published on the PublisherThread. PubSubEvent will maintain a WeakReference to the target of the supplied action delegate.
(Inherited from PubSubEventValueTupleString, ActionString)
Public methodSubscribe(ActionUTP, ThreadOption) Subscribes a delegate to an event. PubSubEvent will maintain a WeakReference to the Target of the supplied action delegate.
(Inherited from PubSubEventValueTupleString, ActionString)
Public methodSubscribe(ActionUTP, Boolean) Subscribes a delegate to an event that will be published on the PublisherThread.
(Inherited from PubSubEventValueTupleString, ActionString)
Public methodSubscribe(ActionUTP, PredicateUTP) Subscribes a delegate to an event that will be published on the PublisherThread
(Inherited from PubSubEventValueTupleString, ActionString)
Public methodSubscribe(ActionUTP, ThreadOption, Boolean) Subscribes a delegate to an event.
(Inherited from PubSubEventValueTupleString, ActionString)
Public methodSubscribe(ActionUTP, ThreadOption, Boolean, PredicateUTP) Subscribes a delegate to an event.
(Inherited from PubSubEventValueTupleString, ActionString)
Public methodUnsubscribe(ActionUTP) Removes the first subscriber matching ActionT from the subscribers' list.
(Inherited from PubSubEventValueTupleString, ActionString)
Public methodUnsubscribe(SubscriptionToken) Removes the subscriber matching the SubscriptionToken.
(Inherited from EventBase)
Top
Remarks
The response is a string with the requested data. The data is in JSON format (but without line breaks), e.g.:
{
   "PenNumbers": [
       1,
       6,
       7
   ]
}
For deserialize this string create a class like this:
private class JsonPenNumbers
{
        public SortedSet<int> PenNumbers { get; set; }
}
See Also