Code/SifCommonFramework/Systemic.Sif.Framework/Subscriber/GenericSubscriber.cs
/// <summary>
/// This method is called when a SIF Event is received by the Subscriber.
/// </summary>
/// <param name="evnt">SIF Event received.</param>
/// <param name="zone">Zone that SIF Event was received.</param>
/// <param name="info">Information on the received message.</param>
This method is called when a SIF Event is received by the Subscriber.
This method is called when a SIF Event is received by the Subscriber .
void ISubscriber.OnEvent(Event evnt, IZone zone, IMessageInfo info)
        {
            while (evnt.Data.Available)
            {
                T sifDataObject = (T)evnt.Data.ReadDataObject();
                EventAction eventAction = evnt.Action;
                SifEvent<T> sifEvent = new SifEvent<T>(sifDataObject, eventAction);
                if (PreProcessEvent(sifEvent, zone))
                {
                    ProcessEvent(sifEvent, zone);
                }
            }
        }
void ISubscriber . OnEvent ( Event evnt , IZone zone , IMessageInfo info ) { while ( evnt . Data . Available ) { T sifDataObject = ( T ) evnt . Data . ReadDataObject ( ) ; EventAction eventAction = evnt . Action ; SifEvent < T > sifEvent = new SifEvent < T > ( sifDataObject , eventAction ) ; if ( PreProcessEvent ( sifEvent , zone ) ) { ProcessEvent ( sifEvent , zone ) ; } } }
This method is called when a SIF Event is received by the Subscriber.
This method is called when a SIF Event is received by the Subscriber .
// Although not generally the case, it is possible that more than 1 SIF Data Object is received with the // SIF Event.
evnt
Event
SIF Event received.
SIF Event received .
zone
IZone
Zone that SIF Event was received.
Zone that SIF Event was received .
info
IMessageInfo
Information on the received message.
Information on the received message .