Search Results for

    Show / Hide Table of Contents

    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 Source

    SupportsLongRunning

    Gets whether long-running scheduling is supported.

    Declaration
    bool SupportsLongRunning { get; }
    Property Value
    Type Description
    Boolean

    Methods

    | Improve this Doc View Source

    QueueUserWorkItem(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.

    | Improve this Doc View Source

    Sleep(TimeSpan)

    Blocking sleep operation.

    Declaration
    void Sleep(TimeSpan timeout)
    Parameters
    Type Name Description
    TimeSpan timeout

    Time to sleep.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    StartStopwatch()

    Starts a new stopwatch object.

    Declaration
    IStopwatch StartStopwatch()
    Returns
    Type Description
    IStopwatch

    New stopwatch object; started at the time of the request.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX