C# Класс System.Threading.SingleThreadedInvoker

An invoker which runs invoked delegates on a message queue processed by a single thread.
Наследование: System.SafeDisposable, ISynchronizeInvoke
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BeginInvoke ( Delegate method, object args ) : IAsyncResult

Queue the delegate to be invoked on this invoker's thread

EndInvoke ( IAsyncResult result ) : object

Returns when the asynchronous invokation represented by result completes

Invoke ( Delegate method, object args ) : object

Invokes the delegate on this invoker's thread and returns upon completion

SingleThreadedInvoker ( ) : System

Construct an invoker with its own background thread

Защищенные методы

Метод Описание
DisposeOfManagedResources ( ) : void

Stops the message loop

Приватные методы

Метод Описание
DisposeOfMRE ( ManualResetEvent mre ) : void
EventLoop ( ) : void
GetMRE ( ) : ManualResetEvent

Описание методов

BeginInvoke() публичный Метод

Queue the delegate to be invoked on this invoker's thread
public BeginInvoke ( Delegate method, object args ) : IAsyncResult
method System.Delegate
args object
Результат IAsyncResult

DisposeOfManagedResources() защищенный Метод

Stops the message loop
protected DisposeOfManagedResources ( ) : void
Результат void

EndInvoke() публичный Метод

Returns when the asynchronous invokation represented by result completes
public EndInvoke ( IAsyncResult result ) : object
result IAsyncResult
Результат object

Invoke() публичный Метод

Invokes the delegate on this invoker's thread and returns upon completion
public Invoke ( Delegate method, object args ) : object
method System.Delegate
args object
Результат object

SingleThreadedInvoker() публичный Метод

Construct an invoker with its own background thread
public SingleThreadedInvoker ( ) : System
Результат System