ServerInstanceMode EnumerationNFX Class Library

[This is preliminary documentation and is subject to change.]

Denotes server instance modes - how server instances relate to calls

Namespace: NFX.Glue
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public enum ServerInstanceMode
Members

  Member nameValueDescription
Singleton0 Indicates that the same single process-wide instance will serve all request for particular contract. The server MUST be thread-safe
PerCall1 Indicates that every request for a particular contract will create an instance which will live until the method exits
Stateful2 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
AutoConstructedStateful3 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 simiar to 'Stateful' but does not require the caller to explicitly call the [Constructor]-decorated method first
See Also