ClassFactory

Overview

This is the abstract base class for class factory implementations.

When writing Remoting SDK servers, you will not use this class, but one of its descendants.

When implementing your own custom class factory, you will descend from this class.

Location


Instance Methods


constructor  protected

 

constructor(serviceClass: Type; activator: IServiceActivator; enforceSessionCheck: Boolean; roles: array of String)

 

ClassFactory(Type serviceClass, IServiceActivator activator, Boolean enforceSessionCheck, String[] roles)

 

Sub New(serviceClass As Type, activator As IServiceActivator, enforceSessionCheck As Boolean, roles As String())

Parameters:

  • serviceClass:
  • activator:
  • enforceSessionCheck:
  • roles:

AcquireInstance

 

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

 

IROService AcquireInstance(Guid clientId, Boolean activate)

 

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

Parameters:

  • clientId:
  • activate:

ActivateInstance  protected

 

method ActivateInstance(clientId: Guid; instance: IROService)

 

void ActivateInstance(Guid clientId, IROService instance)

 

Sub ActivateInstance(clientId As Guid, instance As IROService)

Parameters:

  • clientId:
  • instance:

CreateInstance

 

method CreateInstance: IROService

 

IROService CreateInstance()

 

Function CreateInstance() As IROService

DeactivateInstance  protected

 

method DeactivateInstance(clientId: Guid; instance: IROService)

 

void DeactivateInstance(Guid clientId, IROService instance)

 

Sub DeactivateInstance(clientId As Guid, instance As IROService)

Parameters:

  • clientId:
  • instance:

ReleaseInstance

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

 

method ReleaseInstance(clientId: Guid; instance: IROService)

 

void ReleaseInstance(Guid clientId, IROService instance)

 

Sub ReleaseInstance(clientId As Guid, instance As IROService)

Parameters:

  • clientId:
  • instance: