Occurs when a new message is received in the asynchronous mode.
property OnMessage: TMSMessageEvent;
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.
procedure TForm1.MSServiceBrokerMessage(Sender: TObject); begin while MSServiceBroker.Receive do Process(MSServiceBroker.CurrentMessage); end;