Interface IConcurrencyAbstractionLayer
(Infrastructure) Concurrency abstraction layer interface.
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive.Core.dll
Syntax
public interface IConcurrencyAbstractionLayer
Remarks
This type is used by the Rx infrastructure and not meant for public consumption or implementation. No guarantees are made about forward compatibility of the type's functionality and its usage.
Properties
| Improve this Doc View SourceSupportsLongRunning
Gets whether long-running scheduling is supported.
Declaration
bool SupportsLongRunning { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Methods
| Improve this Doc View SourceQueueUserWorkItem(Action<Object>, Object)
Queues a method for execution.
Declaration
IDisposable QueueUserWorkItem(Action<object> action, object state)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<Object> | action | Method to execute. |
| Object | state | State to pass to the method. |
Returns
| Type | Description |
|---|---|
| IDisposable | Disposable object that can be used to cancel the queued method. |
Sleep(TimeSpan)
Blocking sleep operation.
Declaration
void Sleep(TimeSpan timeout)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | timeout | Time to sleep. |
StartPeriodicTimer(Action, TimeSpan)
Queues a method for periodic execution based on the specified period.
Declaration
IDisposable StartPeriodicTimer(Action action, TimeSpan period)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | action | Method to execute; should be safe for reentrancy. |
| TimeSpan | period | Period for running the method periodically. |
Returns
| Type | Description |
|---|---|
| IDisposable | Disposable object that can be used to stop the timer. |
StartStopwatch()
Starts a new stopwatch object.
Declaration
IStopwatch StartStopwatch()
Returns
| Type | Description |
|---|---|
| IStopwatch | New stopwatch object; started at the time of the request. |
StartThread(Action<Object>, Object)
Starts a new long-running thread.
Declaration
void StartThread(Action<object> action, object state)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<Object> | action | Method to execute. |
| Object | state | State to pass to the method. |
StartTimer(Action<Object>, Object, TimeSpan)
Queues a method for execution at the specified relative time.
Declaration
IDisposable StartTimer(Action<object> action, object state, TimeSpan dueTime)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<Object> | action | Method to execute. |
| Object | state | State to pass to the method. |
| TimeSpan | dueTime | Time to execute the method on. |
Returns
| Type | Description |
|---|---|
| IDisposable | Disposable object that can be used to stop the timer. |