IROObjectTimeout

Overview

IROObjectTimeout provides an event that your code can subscribe to in order to be notified about the expiration of a service instance. The service instance should support this interface if it wants to receive this notification.

The following example demomnstrates the usage of this interface:

type
  TSingleCallService = class(TRORemotable, ISingleCallService,IROObjectTimeout)
    ..
    procedure OnTimeout;
  end;
..
procedure TSingleCallService.OnTimeout;
begin
  ShowMessage('TimeOut!');
end;

Location

Required Methods


OnTimeout

Method defined by the user.

This method is called from the TimeoutSessions and TimeoutSession methods of the TROPerClientClassFactory, so the IROPerClientClassFactory can also be used for the initiation of this method.

procedure OnTimeout

See Also