SingletonClassFactoryAttribute

Overview

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

Location

 

constructor

 

constructor

 

SingletonClassFactoryAttribute()

 

Sub New()

constructor (SingletonBehavior)

 

constructor(singletonBehavior: SingletonBehavior)

 

SingletonClassFactoryAttribute(SingletonBehavior singletonBehavior)

 

Sub New(singletonBehavior As SingletonBehavior)

Parameters:

  • singletonBehavior:

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:

SingletonBehavior

Defines how the class factory will behave when concurrent requests are coming in.

 

property SingletonBehavior: SingletonBehavior read write;

 

SingletonBehavior SingletonBehavior { get; set; }

 

Property SingletonBehavior() As SingletonBehavior

Timeout

 

property Timeout: Int32 read write;

 

Int32 Timeout { get; set; }

 

Property Timeout() As Int32

 

SingletonBehavior

Defines how the class factory will behave when concurrent requests are coming in.

 

property SingletonBehavior: SingletonBehavior read write;

 

SingletonBehavior SingletonBehavior { get; set; }

 

Property SingletonBehavior() As SingletonBehavior

Timeout

 

property Timeout: Int32 read write;

 

Int32 Timeout { get; set; }

 

Property Timeout() As Int32

 

constructor

 

constructor

 

SingletonClassFactoryAttribute()

 

Sub New()

constructor (SingletonBehavior)

 

constructor(singletonBehavior: SingletonBehavior)

 

SingletonClassFactoryAttribute(SingletonBehavior singletonBehavior)

 

Sub New(singletonBehavior As SingletonBehavior)

Parameters:

  • singletonBehavior:

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: