Search Results for

    Show / Hide Table of Contents

    Class ContextDisposable

    Represents a disposable resource whose disposal invocation will be posted to the specified SynchronizationContext.

    Inheritance
    Object
    ContextDisposable
    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 ContextDisposable : ICancelable, IDisposable

    Constructors

    | Improve this Doc View Source

    ContextDisposable(SynchronizationContext, IDisposable)

    Initializes a new instance of the ContextDisposable class that uses the specified SynchronizationContext on which to dispose the specified disposable resource.

    Declaration
    public ContextDisposable(SynchronizationContext context, IDisposable disposable)
    Parameters
    Type Name Description
    SynchronizationContext context

    Context to perform disposal on.

    IDisposable disposable

    Disposable whose Dispose operation to run on the given synchronization context.

    Exceptions
    Type Condition
    ArgumentNullException

    context or disposable is null.

    Properties

    | Improve this Doc View Source

    Context

    Gets the provided SynchronizationContext.

    Declaration
    public SynchronizationContext Context { get; }
    Property Value
    Type Description
    SynchronizationContext
    | 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

    Methods

    | Improve this Doc View Source

    Dispose()

    Disposes the underlying disposable on the provided SynchronizationContext.

    Declaration
    public void Dispose()

    Implements

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