PooledClassFactoryAttribute

Overview

Attach this attribute to your service implementation to have its instantiation controlled by a PooledClassFactory class factory.

Location


 

constructor

 

constructor

 

PooledClassFactoryAttribute()

 

Sub New()

constructor (Int32)

 

constructor(poolSize: Int32)

 

PooledClassFactoryAttribute(Int32 poolSize)

 

Sub New(poolSize As Int32)

Parameters:

  • poolSize:

constructor (Int32, PoolBehavior)

 

constructor(poolSize: Int32; poolBehavior: PoolBehavior)

 

PooledClassFactoryAttribute(Int32 poolSize, PoolBehavior poolBehavior)

 

Sub New(poolSize As Int32, poolBehavior As PoolBehavior)

Parameters:

  • poolSize:
  • poolBehavior:

constructor (Int32, PoolBehavior, Boolean)

 

constructor(poolSize: Int32; poolBehavior: PoolBehavior; initializePool: Boolean)

 

PooledClassFactoryAttribute(Int32 poolSize, PoolBehavior poolBehavior, Boolean initializePool)

 

Sub New(poolSize As Int32, poolBehavior As PoolBehavior, initializePool As Boolean)

Parameters:

  • poolSize:
  • poolBehavior:
  • initializePool:

CreateClassFactory (Type): IClassFactory    (declared in ClassFactoryAttribute)

 

method CreateClassFactory(serviceClass: Type): IClassFactory

 

IClassFactory CreateClassFactory(Type serviceClass)

 

Function CreateClassFactory(serviceClass As Type) As IClassFactory

Parameters:

  • serviceClass:

CreateClassFactory (Type, IServiceActivator, Boolean): IClassFactory

 

method CreateClassFactory(serviceClass: Type; activator: IServiceActivator; enforceSessionCheck: Boolean): IClassFactory

 

IClassFactory CreateClassFactory(Type serviceClass, IServiceActivator activator, Boolean enforceSessionCheck)

 

Function CreateClassFactory(serviceClass As Type, activator As IServiceActivator, enforceSessionCheck As Boolean) As IClassFactory

Parameters:

  • serviceClass:
  • activator:
  • enforceSessionCheck:

PoolBehavior

Defines how the class factory will behave if more requests are coming in than can be handled by the current pool size.

 

property PoolBehavior: PoolBehavior read write;

 

PoolBehavior PoolBehavior { get; set; }

 

Property PoolBehavior() As PoolBehavior

PoolSize

Determines how many items will be kept in the pool.

 

property PoolSize: Int32 read write;

 

Int32 PoolSize { get; set; }

 

Property PoolSize() As Int32

PreInitializePool

Determines whether the instances for all slots of the pool will be created at startup (true) or if the pool will be filled on demand (false). For example, if you have a pool size of 10 and set this parameter to true, 10 server objects will be created immediately at startup. If you set it to false, the nth pooled object will not be created until the first time n simultaneous calls are processed. In both cases, all pooled items are not freed until the class factory is destroyed or you call the ClearPool method manually.

 

property PreInitializePool: Boolean read write;

 

Boolean PreInitializePool { get; set; }

 

Property PreInitializePool() As Boolean

Timeout

 

property Timeout: Int32 read write;

 

Int32 Timeout { get; set; }

 

Property Timeout() As Int32

 

PoolBehavior

Defines how the class factory will behave if more requests are coming in than can be handled by the current pool size.

 

property PoolBehavior: PoolBehavior read write;

 

PoolBehavior PoolBehavior { get; set; }

 

Property PoolBehavior() As PoolBehavior

PoolSize

Determines how many items will be kept in the pool.

 

property PoolSize: Int32 read write;

 

Int32 PoolSize { get; set; }

 

Property PoolSize() As Int32

PreInitializePool

Determines whether the instances for all slots of the pool will be created at startup (true) or if the pool will be filled on demand (false). For example, if you have a pool size of 10 and set this parameter to true, 10 server objects will be created immediately at startup. If you set it to false, the nth pooled object will not be created until the first time n simultaneous calls are processed. In both cases, all pooled items are not freed until the class factory is destroyed or you call the ClearPool method manually.

 

property PreInitializePool: Boolean read write;

 

Boolean PreInitializePool { get; set; }

 

Property PreInitializePool() As Boolean

Timeout

 

property Timeout: Int32 read write;

 

Int32 Timeout { get; set; }

 

Property Timeout() As Int32

 

constructor

 

constructor

 

PooledClassFactoryAttribute()

 

Sub New()

constructor (Int32)

 

constructor(poolSize: Int32)

 

PooledClassFactoryAttribute(Int32 poolSize)

 

Sub New(poolSize As Int32)

Parameters:

  • poolSize:

constructor (Int32, PoolBehavior)

 

constructor(poolSize: Int32; poolBehavior: PoolBehavior)

 

PooledClassFactoryAttribute(Int32 poolSize, PoolBehavior poolBehavior)

 

Sub New(poolSize As Int32, poolBehavior As PoolBehavior)

Parameters:

  • poolSize:
  • poolBehavior:

constructor (Int32, PoolBehavior, Boolean)

 

constructor(poolSize: Int32; poolBehavior: PoolBehavior; initializePool: Boolean)

 

PooledClassFactoryAttribute(Int32 poolSize, PoolBehavior poolBehavior, Boolean initializePool)

 

Sub New(poolSize As Int32, poolBehavior As PoolBehavior, initializePool As Boolean)

Parameters:

  • poolSize:
  • poolBehavior:
  • initializePool:

CreateClassFactory (Type): IClassFactory    (declared in ClassFactoryAttribute)

 

method CreateClassFactory(serviceClass: Type): IClassFactory

 

IClassFactory CreateClassFactory(Type serviceClass)

 

Function CreateClassFactory(serviceClass As Type) As IClassFactory

Parameters:

  • serviceClass:

CreateClassFactory (Type, IServiceActivator, Boolean): IClassFactory

 

method CreateClassFactory(serviceClass: Type; activator: IServiceActivator; enforceSessionCheck: Boolean): IClassFactory

 

IClassFactory CreateClassFactory(Type serviceClass, IServiceActivator activator, Boolean enforceSessionCheck)

 

Function CreateClassFactory(serviceClass As Type, activator As IServiceActivator, enforceSessionCheck As Boolean) As IClassFactory

Parameters:

  • serviceClass:
  • activator:
  • enforceSessionCheck: