SocketTools .NET Edition

LlmClient.ThreadModel Property

Gets and sets a value which specifies the threading model for the class instance.

[Visual Basic]
Public Property ThreadModel As ThreadingModel
[C#]
public LlmClient.ThreadingModel ThreadModel {get; set;}

Property Value

Returns one or more ThreadingModel enumeration value which specifies the threading model for the client.

Remarks

The ThreadModel property specifies the threading model that is used by the class instance when a connection is established. The default value is SingleThread, which specifies that only the thread that established the connection should be permitted to invoke methods.

Setting this property to FreeThread disables certain internal safety checks and may result in unexpected behavior unless you ensure that access to the class instance is synchronized across multiple threads.

See Also