StreamingSubscriptionConnection StreamingSubscriptionConnection 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
StreamingSubscriptionConnectionStreamingSubscriptionConnectionStreamingSubscriptionConnection
Implements

Constructors

StreamingSubscriptionConnection(ExchangeService, Int32) StreamingSubscriptionConnection(ExchangeService, Int32) StreamingSubscriptionConnection(ExchangeService, Int32)

Initializes a new instance of the StreamingSubscriptionConnection class.

StreamingSubscriptionConnection(ExchangeService, IEnumerable<StreamingSubscription>, Int32) StreamingSubscriptionConnection(ExchangeService, IEnumerable<StreamingSubscription>, Int32) StreamingSubscriptionConnection(ExchangeService, IEnumerable<StreamingSubscription>, Int32)

Initializes a new instance of the StreamingSubscriptionConnection class.

Properties

CurrentSubscriptions CurrentSubscriptions CurrentSubscriptions

Gets the current subscriptions in this connection.

IsOpen IsOpen IsOpen

Gets a value that indicates whether this connection is open.

Methods

AddSubscription(StreamingSubscription) AddSubscription(StreamingSubscription) AddSubscription(StreamingSubscription)

Adds a subscription to this connection.

Close() Close() Close()

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

Dispose() Dispose() Dispose()

Frees resources that are associated with this StreamingSubscriptionConnection.

Finalize() Finalize() Finalize()
Open() Open() Open()

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

RemoveSubscription(StreamingSubscription) RemoveSubscription(StreamingSubscription) RemoveSubscription(StreamingSubscription)

Removes the specified streaming subscription from the connection.

Events

OnDisconnect OnDisconnect OnDisconnect

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

OnNotificationEvent OnNotificationEvent OnNotificationEvent

Occurs when notifications are received from the server.

OnSubscriptionError OnSubscriptionError OnSubscriptionError

Occurs when a subscription encounters an error.

Applies to