Code/SifCommonFramework/Systemic.Sif.Framework/Subscriber/GenericSubscriber.cs
/// <summary>
/// This method starts up a thread that periodically sends a SIF Request (if needed) to the specified Zones.
/// </summary>
/// <param name="zones">Zones the SIF Request is sent to.</param>
This method starts up a thread that periodically sends a SIF Request (if needed) to the specified Zones.
This method starts up a thread that periodically sends a SIF Request ( if needed ) to the specified Zones .
public virtual void StartRequestProcessing(IZone[] zones)
        {
            if (RequestFrequency > 0)
            {
                if (log.IsDebugEnabled) log.Debug(this.GetType().Name + " starting request processing (interval is " + RequestFrequency + " milliseconds)...");
                Timer timer = new Timer(RequestFrequency);
                timer.Elapsed += delegate { BroadcastRequests(zones); };
                timer.Start();
            }
        }
public virtual void StartRequestProcessing ( IZone [ ] zones ) { if ( RequestFrequency > 0 ) { if ( log . IsDebugEnabled ) log . Debug ( this . GetType ( ) . Name + " " + RequestFrequency + " " ) ; Timer timer = new Timer ( RequestFrequency ) ; timer . Elapsed += delegate { BroadcastRequests ( zones ) ; } ; timer . Start ( ) ; } }
This method starts up a thread that periodically sends a SIF Request (if needed) to the specified Zones.
This method starts up a thread that periodically sends a SIF Request ( if needed ) to the specified Zones .
// Create a timer with an appropriate interval.
zones
IZone[]
Zones the SIF Request is sent to.
Zones the SIF Request is sent to .