IClassFactory

Overview

This is the common base interface for all class factory implementations.

When implementing your own custom class factory, you will either descend from the existing ClassFactory class or manually implement this interface.

Location

Implemented in

Required Methods


AcquireInstance

Acquires a new service instance that can be used to execute a remote service call, based on the logic of the class factory implementation.

 

method AcquireInstance(clientId: Guid): IROService

 

IROService AcquireInstance(Guid clientId)

 

Function AcquireInstance(clientId As Guid) As IROService

Parameters:

  • clientId:

ReleaseInstance

Releases a previously acquired service instance, based on the logic of the class factory implementation.

 

method ReleaseInstance(clientId: Guid; serviceInstance: IROService)

 

void ReleaseInstance(Guid clientId, IROService serviceInstance)

 

Sub ReleaseInstance(clientId As Guid, serviceInstance As IROService)

Parameters:

  • clientId:
  • serviceInstance: