SingletonClassFactory Class

From RemObjects Software

Jump to: navigation, search

This is a RemObjects SDK Architecture entry
Feel free to add your notes to this topic below.



Overview (.NET)

This class factory allows you to publish a service that follows the Singleton pattern, meaning that exactly one instance of the service class will be created at a given time and used to serve all requests.

Using the SingletonBehavior option, you can control how concurrent access to the service will be handled, by allowing simultaneous concurrent access ( SingletonBehavior.Multiple), by synchronizing all requests so only one of them will be executed at a given time ( SingletonBehavior.Wait) or by causing concurrent calls to fail ( SingletonBehavior.Fail).

Namespace

Declaration (C#)

public class SingletonClassFactory : ClassFactory;

Hierarchy

Methods

Method
Description
AcquireInstance Acquires a new Service instance that can be used to execute a remote service call, based on the logic of the class factory implementation.
ReleaseInstance Releases a previously acquired service instance, based on the logic of the class factory implementation.
SingletonClassFactory Default constructor for SingletonClassFactory.


See Also


Product: RemObjects SDK
Current version: RemObjects SDK 'Vinci' (5.0)

ListsGlossaryFeaturesHow ToComponentsToolsSamplesArticlesArchitectureIssues

Personal tools