Class SerialSubscription
Serial subscription that disposes an existing subscriptions upon reassigment.
Inheritance
System.Object
SerialSubscription
Namespace: Reaqtive
Assembly: Reaqtive.Core.dll
Syntax
public class SerialSubscription : Object, IFutureSubscription, ISubscription, IDisposable
Constructors
SerialSubscription()
Declaration
public SerialSubscription()
Properties
Subscription
Gets or sets the underlying subscription.
Declaration
public ISubscription Subscription { get; set; }
Property Value
Type | Description |
---|---|
ISubscription |
Remarks
If the SerialDisposable has already been disposed, assignment to this property causes immediate disposal of the given disposable object. Assigning this property disposes the previous disposable object.
Methods
Accept(ISubscriptionVisitor)
Accepts a visitor that will be dispatched through the subscription, causing the inner subscription to be visited.
Declaration
public void Accept(ISubscriptionVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
ISubscriptionVisitor | visitor | Visitor to accept. |
Dispose()
Disposes the underlying disposable as well as all future replacements.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes the object.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true if called from System.IDisposable.Dispose; otherwise, false. |
Implements
System.IDisposable