SingletonClassFactoryAttribute
Overview
Attach this attribute to your service implementation to have its instantiation controlled by a SingletonClassFactory.
Location
- Reference: RemObjects.SDK.Server.dll
- Namespace: RemObjects.SDK.Server.ClassFactories
- Ancestry: Attribute | ClassFactoryAttribute | SingletonClassFactoryAttribute
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, 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:
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, 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: