Search Results for

    Show / Hide Table of Contents

    Class ScheduledDisposable

    Represents a disposable resource whose disposal invocation will be scheduled on the specified IScheduler.

    Inheritance
    Object
    ScheduledDisposable
    Implements
    ICancelable
    IDisposable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: System.Reactive.Disposables
    Assembly: System.Reactive.Core.dll
    Syntax
    public sealed class ScheduledDisposable : ICancelable, IDisposable

    Constructors

    | Improve this Doc View Source

    ScheduledDisposable(IScheduler, IDisposable)

    Initializes a new instance of the ScheduledDisposable class that uses an IScheduler on which to dispose the disposable.

    Declaration
    public ScheduledDisposable(IScheduler scheduler, IDisposable disposable)
    Parameters
    Type Name Description
    IScheduler scheduler

    Scheduler where the disposable resource will be disposed on.

    IDisposable disposable

    Disposable resource to dispose on the given scheduler.

    Exceptions
    Type Condition
    ArgumentNullException

    scheduler or disposable is null.

    Properties

    | Improve this Doc View Source

    Disposable

    Gets the underlying disposable. After disposal, the result is undefined.

    Declaration
    public IDisposable Disposable { get; }
    Property Value
    Type Description
    IDisposable
    | Improve this Doc View Source

    IsDisposed

    Gets a value that indicates whether the object is disposed.

    Declaration
    public bool IsDisposed { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Scheduler

    Gets the scheduler where the disposable resource will be disposed on.

    Declaration
    public IScheduler Scheduler { get; }
    Property Value
    Type Description
    IScheduler

    Methods

    | Improve this Doc View Source

    Dispose()

    Disposes the wrapped disposable on the provided scheduler.

    Declaration
    public void Dispose()

    Implements

    ICancelable
    System.IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX