Enum ServerInstanceMode
Denotes server instance modes - how server instances relate to calls
Namespace: Azos.Glue
Assembly: Azos.dll
Syntax
public enum ServerInstanceMode
Fields
Name | Description |
---|---|
AutoConstructedStateful | Indicates that the instance is stateful and will live between a call to either [Constructor]-decorated method or first call to any method, and [Destructor]-decorated method or until timeout interval has passed. The implementation may or may not be thread-safe, if it is then [ThreadSafe] attribute may be used to avoid instance locking. This mode is similar to 'Stateful' but does not require the caller to explicitly call the [Constructor]-decorated method first |
PerCall | Indicates that every request for a particular contract will create an instance which will live until the method exits |
Singleton | Indicates that the same single glue-wide instance will serve all request for particular contract. The server MUST be thread-safe |
Stateful | Indicates that the instance is stateful and will live between a call to [Constructor]-decorated method and [Destructor]-decorated method, or until timeout interval has passed. The implementation may or may not be thread-safe, if it is, then [ThreadSafe] attribute may be used to avoid instance locking |