IROPerClientClassFactory

Overview

IROPerClientClassFactory allows to manually free specific sessions or all sessions of the TROPerClientClassFactory instance.

The following example demonstrates the usage of this interface:

var
  list: IROStrings;
  i: integer;
  cf: IROClassFactory;
  pccf: IROPerClientClassFactory;
begin
  list := GetClassFactoryNames;
  for i := 0 to list.Count -1 do begin
    cf := GetClassFactory(list[i]);
    if Supports(cf,IROPerClientClassFactory, pccf) then pcf.TimeoutSessions;
  end;   

Location


Required Methods


TimeoutSession

Manually frees a specific session as if it had expired.

procedure TimeoutSession(const aClientId: TGuid)

Parameters:

  • aClientId: Client ID

TimeoutSessions

Manually frees all instantiated per-client Service instances as if they had expired.

procedure TimeoutSessions