UA Bundle SDK .NET  2.2.1.258
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Groups Pages
UnifiedAutomation.UaBase.ApplicationThreadPool Class Reference

Manages a queue of requests. More...

Inherits IDisposable.

Inherited by UnifiedAutomation.UaBase.ServerBase.RequestQueue.

Public Member Functions

 ApplicationThreadPool (int minThreadCount, int maxThreadCount, int maxRequestCount)
 Initializes a new instance of the ThreadPool class. More...
 
void Dispose ()
 Frees any unmanaged resources. More...
 
void Queue (object request, ThreadPoolEventHandler callback)
 Schedules an incoming request. More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 An overrideable version of the Dispose. More...
 

Detailed Description

Manages a queue of requests.

Constructor & Destructor Documentation

UnifiedAutomation.UaBase.ApplicationThreadPool.ApplicationThreadPool ( int  minThreadCount,
int  maxThreadCount,
int  maxRequestCount 
)
inline

Initializes a new instance of the ThreadPool class.

Parameters
minThreadCountThe minimum number of threads in the pool.
maxThreadCountThe maximum number of threads in the pool.
maxRequestCountThe maximum number of requests that will placed in the queue.

Member Function Documentation

void UnifiedAutomation.UaBase.ApplicationThreadPool.Dispose ( )
inline

Frees any unmanaged resources.

virtual void UnifiedAutomation.UaBase.ApplicationThreadPool.Dispose ( bool  disposing)
inlineprotectedvirtual

An overrideable version of the Dispose.

void UnifiedAutomation.UaBase.ApplicationThreadPool.Queue ( object  request,
ThreadPoolEventHandler  callback 
)
inline

Schedules an incoming request.

Parameters
requestThe request.
callbackThe callback.

The documentation for this class was generated from the following file: