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

  • Reference: RemObjects.SDK.Server.dll
  • Namespace: RemObjects.SDK.Server
  • Platforms: .NET Core, .NET Framework, .NET Standard


Required Methods


AcquireInstance

 

method AcquireInstance(clientId: Guid; activate: Boolean := true): IROService

 

IROService AcquireInstance(Guid clientId, Boolean activate = true)

 

func AcquireInstance(_ clientId: Guid, _ activate: Boolean = true) -> IROService

 

Function AcquireInstance(clientId As Guid, activate As Boolean = true) As IROService

Parameters:

  • clientId:
  • activate:

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)

 

func ReleaseInstance(_ clientId: Guid, _ serviceInstance: IROService)

 

Sub ReleaseInstance(clientId As Guid, serviceInstance As IROService)

Parameters:

  • clientId:
  • serviceInstance: