SDAC

TMSServiceBroker.OnMessage Event

Occurs when a new message is received in the asynchronous mode.

Class

TMSServiceBroker

Syntax

property OnMessage: TMSMessageEvent;

Remarks

The OnMessage event occurs when a new message is received in the asynchronous mode (AsyncNotification is set to True).

This event is called in the context of the main thread.

Example

procedure TForm1.MSServiceBrokerMessage(Sender: TObject);
   begin
      while MSServiceBroker.Receive do
         Process(MSServiceBroker.CurrentMessage);
   end; 

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback