메소드 | 설명 | |
---|---|---|
BeginInvoke ( |
Executes the delegate on the main thread that this DelegateQueue executes on. The delegate is called asynchronously, and this method returns immediately. You can call this method from any thread. If you need the return value from a process started with this method, call EndInvoke to get the value. If you need to call the delegate synchronously, use the Invoke method instead. |
|
DelegateQueue ( string name ) : System |
Initializes a new instance of the DelegateQueue class.
|
|
DelegateQueue ( string name, IContainer container ) : System |
Initializes a new instance of the DelegateQueue class with the specified IContainer object.
|
|
Dispose ( ) : void |
Disposes of the DelegateQueue.
|
|
EndInvoke ( IAsyncResult result ) : object |
Waits until the process started by calling BeginInvoke completes, and then returns the value generated by the process. This method gets the return value of the asynchronous operation represented by the IAsyncResult passed by this interface. If the asynchronous operation has not completed, this method will wait until the result is available. |
|
Invoke ( |
Executes the delegate on the main thread that this DelegateQueue executes on. Unlike BeginInvoke, this method operates synchronously, that is, it waits until the process completes before returning. Exceptions raised during the call are propagated back to the caller. Use this method when calling a method from a different thread to marshal the call to the proper thread. |
|
Post ( SendOrPostCallback d, object state ) : void |
Dispatches an asynchronous message to this synchronization context. The Post method starts an asynchronous request to post a message. |
|
Send ( SendOrPostCallback d, object state ) : void |
Dispatches a synchronous message to this synchronization context. The Send method starts an synchronous request to send a message. |
메소드 | 설명 | |
---|---|---|
Dispose ( bool disposing ) : void | ||
OnDisposed ( |
||
OnInvokeCompleted ( |
||
OnPostCompleted ( Sanford.Threading.PostCompletedEventArgs e ) : void |
메소드 | 설명 | |
---|---|---|
DelegateProcedure ( ) : void | ||
InitializeDelegateQueue ( string name ) : void |
public BeginInvoke ( |
||
method | /// A Delegate to a method that takes parameters of the same number and type that /// are contained in args. /// | |
리턴 | IAsyncResult |
public DelegateQueue ( string name, IContainer container ) : System | ||
name | string | |
container | IContainer | /// The IContainer to which the DelegateQueue will add itself. /// |
리턴 | System |
public EndInvoke ( IAsyncResult result ) : object | ||
result | IAsyncResult | /// An IAsyncResult interface that represents the asynchronous operation started /// by calling BeginInvoke. /// |
리턴 | object |
public Invoke ( |
||
method | /// A Delegate that contains a method to call, in the context of the thread for the DelegateQueue. /// | |
리턴 | object |
protected OnInvokeCompleted ( |
||
e | ||
리턴 | void |
protected OnPostCompleted ( Sanford.Threading.PostCompletedEventArgs e ) : void | ||
e | Sanford.Threading.PostCompletedEventArgs | |
리턴 | void |
public Post ( SendOrPostCallback d, object state ) : void | ||
d | SendOrPostCallback | /// The SendOrPostCallback delegate to call. /// |
state | object | /// The object passed to the delegate. /// |
리턴 | void |
public Send ( SendOrPostCallback d, object state ) : void | ||
d | SendOrPostCallback | /// The SendOrPostCallback delegate to call. /// |
state | object | /// The object passed to the delegate. /// |
리턴 | void |