PerClientClassFactoryAttribute

Overview

Attach this attribute to your service implementation to have its instantiation controlled by a PerClientClassFactory.

Location

Properties


AllowConcurrentAccess

Determines whether the class factory will allow concurrent access to the same per-client instance for several requests (true) or not (false). By default, concurrent access is not allowed. If you enable it, ensure that your service instances are implemented to be thread-safe and reentrant.

 

property AllowConcurrentAccess: Boolean read write;

 

Boolean AllowConcurrentAccess { get; set; }

 

Property AllowConcurrentAccess() As Boolean

Timeout

Determines the timeout (in seconds) after which sessions will be discarded if they have not been accessed. The default value is 600 seconds (10 minutes).

 

property Timeout: Int32 read write;

 

Int32 Timeout { get; set; }

 

Property Timeout() As Int32

Instance Methods


constructor

 

constructor

 

PerClientClassFactoryAttribute()

 

Sub New()

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: