ThreadSafeAttribute ClassNFX Class Library

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

Indicates that server instance should not be lock()-ed by Glue handler because it is implemented in a thread-safe way. This attribute has no effect for Glue servers that are not [LifeCycle(Stateful)], because they are never locked. Singleton servers must be thread-safe by definition so this attribute is not needed for Singleton servers. If the server is implemented in a thread-safe way, then addition of this attribute may give 15-30% performance boost from Glue runtime when many parallel requests are trying to work with the same instance, however this benefit may be nullified by inefficient user locking code within server implementation. Leaving this attribute out is safer
Inheritance Hierarchy

OnlineSystem Object
  OnlineSystem Attribute
    NFX.Glue ThreadSafeAttribute

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

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class ThreadSafeAttribute : Attribute
See Also