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, array of String): IClassFactory

 

method CreateClassFactory(serviceClass: Type; activator: IServiceActivator; enforceSessionCheck: Boolean; roles: array of String): IClassFactory

 

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

 

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

Parameters:

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