StreamingSubscriptionConnection Class

Definition

Represents a connection to an ongoing stream of events.

public ref class StreamingSubscriptionConnection sealed : IDisposable
public sealed class StreamingSubscriptionConnection : IDisposable
Public NotInheritable Class StreamingSubscriptionConnection
Implements IDisposable
Inheritance
StreamingSubscriptionConnection
Implements

Constructors

StreamingSubscriptionConnection(ExchangeService, IEnumerable<StreamingSubscription>, Int32)

Initializes a new instance of the StreamingSubscriptionConnection class.

StreamingSubscriptionConnection(ExchangeService, Int32)

Initializes a new instance of the StreamingSubscriptionConnection class.

Properties

CurrentSubscriptions

Gets the current subscriptions in this connection.

IsOpen

Gets a value that indicates whether this connection is open.

Methods

AddSubscription(StreamingSubscription)

Adds a subscription to this connection.

Close()

Closes this connection so it stops receiving events from the server.

Dispose()

Frees resources that are associated with this StreamingSubscriptionConnection.

Finalize()
Open()

Opens this connection so that it begins to receive events from the server.

RemoveSubscription(StreamingSubscription)

Removes the specified streaming subscription from the connection.

Events

OnDisconnect

Occurs when a streaming subscription connection is disconnected from the server.

OnNotificationEvent

Occurs when notifications are received from the server.

OnSubscriptionError

Occurs when a subscription encounters an error.

Applies to