SingletonClassFactory Class
From RemObjects Software
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
- RemObjects.SDK.Server.ClassFactories.ClassFactory
- RemObjects.SDK.Server.ClassFactories.SingletonClassFactory
Methods
| | |
|---|---|
| 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)
Lists — Glossary — Features — How To — Components — Tools — Samples — Articles — Architecture — Issues
Categories: Text | RemObjects SDK | Architecture | Class | .NET
