Reference
OpcTaskSchedule Members
Defines the central entry point used to schedule any kind of task to perform using custom queuing and scheduling mechanisms.
Reference
OpcTaskSchedule Members
- Type
- OpcTaskSchedule
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Properties
CustomScheduler
Gets or sets the callback used to schedule task invocations.
public static OpcTaskSchedule.Scheduler CustomScheduler { get; set; }Public Shared Property CustomScheduler As OpcTaskSchedule.SchedulerProperty value
A OpcTaskSchedule.Scheduler which is used to schedule task invocations, or a null reference (Nothing in Visual Basic) to use a default scheduler. The default value is a null reference (Nothing in Visual Basic).
DefaultScheduler
Gets or sets the callback used to schedule task invocations. This property is obsolete, use CustomScheduler instead.
[Obsolete("Use CustomScheduler instead.")]
public static OpcTaskSchedule.Scheduler DefaultScheduler { get; set; }<Obsolete("Use CustomScheduler instead.")>
Public Shared Property DefaultScheduler As OpcTaskSchedule.SchedulerProperty value
The CustomScheduler, or a scheduler which runs each invocation on the thread pool if no CustomScheduler is set. Setting the value sets the CustomScheduler.
Methods
QueryScheduler
Determines the OpcTaskSchedule.Scheduler to use to schedule task invocations with respect to the context specified.
public static OpcTaskSchedule.Scheduler QueryScheduler(
SynchronizationContext context,
out bool isContextSensitive)Public Shared Function QueryScheduler(
context As SynchronizationContext,
isContextSensitive As Boolean) As OpcTaskSchedule.SchedulerParameters
| Name | Type | Description |
|---|---|---|
context | Synchronization | The Synchronization |
is | out Boolean | When this method returns, the value true if the returned scheduler posts the invocations to the context; otherwise the value false. |
Returns
The CustomScheduler if it is set; otherwise a scheduler which posts each invocation to the context if it is not a null reference (Nothing in Visual Basic); otherwise a scheduler which runs each invocation on the thread pool.
Schedule
| Overload | Description |
|---|---|
| Schedule( | Schedules the invocation of the action specified using custom queuing and scheduling mechanisms. |
| Schedule( | Schedules the invocation of the action specified using custom queuing and scheduling mechanisms. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The action is a null reference ( |
Schedule(Action)
Schedules the invocation of the action specified using custom queuing and scheduling mechanisms.
public static void Schedule(Action action)Public Shared Sub Schedule(action As Action)Parameters
| Name | Type | Description |
|---|---|---|
action | Action | The Action its invocation is to be scheduled. |
Schedule(Action, SynchronizationContext)
Schedules the invocation of the action specified using custom queuing and scheduling mechanisms.
public static void Schedule(Action action, SynchronizationContext context)Public Shared Sub Schedule(action As Action, context As SynchronizationContext)Parameters
| Name | Type | Description |
|---|---|---|
action | Action | The Action its invocation is to be scheduled. |
context | Synchronization | The Synchronization |

