TsgcWSPClient_AMQP › Events › OnAMQPExchangeDelete
Fires when the server confirms that an exchange has been deleted (exchange.delete-ok).
property OnAMQPExchangeDelete: TsgcAMQPExchangeDeleteEvent;
// TsgcAMQPExchangeDeleteEvent = procedure(Sender: TObject; const aChannel, aExchange: string) of object
—
Raised in response to a call to DeleteExchange. aChannel is the channel that carried the delete, aExchange is the exchange that has just been removed. After this event any binding that pointed to the exchange is destroyed and subsequent publishes to that exchange will fail with NOT_FOUND.
procedure TForm1.oAMQPAMQPExchangeDelete(Sender: TObject;
const aChannel, aExchange: string);
begin
DoLog(Format('#AMQP Exchange deleted: %s on %s', [aExchange, aChannel]));
end;