A synchronization context that runs on a single dedicated thread.
More...
Inherits SynchronizationContext.
|
| SingleThreadSynchronizationContext () |
| Creates a new instance. More...
|
|
override SynchronizationContext | CreateCopy () |
|
override void | Post (SendOrPostCallback d, object state) |
| Queues the callback to be executed on the thread. More...
|
|
override void | Send (SendOrPostCallback d, object state) |
| Queues the callback to be executed on the thread and blocks the current thread until the callback execution finished. More...
|
|
void | Start () |
| Starts the execution of the queue. More...
|
|
void | Stop () |
| Stops the execution of the queue More...
|
|
Task | RunAsync (Func< Task > func) |
| Runs the given function on the context thread. More...
|
|
A synchronization context that runs on a single dedicated thread.
UnifiedAutomation.UaServer.SingleThreadSynchronizationContext.SingleThreadSynchronizationContext |
( |
| ) |
|
override void UnifiedAutomation.UaServer.SingleThreadSynchronizationContext.Post |
( |
SendOrPostCallback |
d, |
|
|
object |
state |
|
) |
| |
Queues the callback to be executed on the thread.
- Parameters
-
d | The callback. |
state | The state passed to the callback. |
Task UnifiedAutomation.UaServer.SingleThreadSynchronizationContext.RunAsync |
( |
Func< Task > |
func | ) |
|
Runs the given function on the context thread.
- Parameters
-
func | The function to execute. |
- Returns
- A task.
override void UnifiedAutomation.UaServer.SingleThreadSynchronizationContext.Send |
( |
SendOrPostCallback |
d, |
|
|
object |
state |
|
) |
| |
Queues the callback to be executed on the thread and blocks the current thread until the callback execution finished.
- Parameters
-
void UnifiedAutomation.UaServer.SingleThreadSynchronizationContext.Start |
( |
| ) |
|
Starts the execution of the queue.
void UnifiedAutomation.UaServer.SingleThreadSynchronizationContext.Stop |
( |
| ) |
|
Stops the execution of the queue
The documentation for this class was generated from the following file:
- D:/work/uasdknet_master/src/UaServer/Model/SingleThreadSynchronizationContext.cs