StreamingSubscriptionConnection class

Represents a connection to an ongoing stream of events.

Constructors

StreamingSubscriptionConnection(ExchangeService service, int lifetime)
Initializes a new instance of the

Properties

CurrentSubscriptions Iterable<StreamingSubscription>
Initializes a new instance of the
no setter
hashCode int
The hash code for this object.
no setterinherited
IsOpen bool
Gets a value indicating whether this connection is opened
no setter
OnDisconnect List<SubscriptionErrorDelegate>
Occurs when a subscription encounters an error.
getter/setter pair
OnNotificationEvent List<NotificationEventDelegate>
Occurs when notifications are received from the server.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

AddSubscription(StreamingSubscription subscription) → void
Adds a subscription to this connection.
Close() Future<void>
Closes this connection so it stops receiving events from the server. This terminates a long-standing call to EWS.
Dispose() → void
Finalizes an instance of the StreamingSubscriptionConnection class.
DisposeWithFinalizer(bool suppressFinalizer) → void
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
HandleServiceResponseObject(Object response) Future<void>
Handles the service response object.
InternalOnDisconnect(Object? ex) → void
helper method called when the request disconnects.
IssueGeneralFailure(GetStreamingEventsResponse gseResponse) → void
Issues the general failure.
IssueNotificationEvents(GetStreamingEventsResponse gseResponse) Future<void>
Issues the notification events.
IssueSubscriptionFailures(GetStreamingEventsResponse gseResponse) → void
Issues the subscription failures.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
Open() Future<void>
Opens this connection so it starts receiving events from the server. This results in a long-standing call to EWS.
RemoveSubscription(StreamingSubscription subscription) → void
Removes the specified streaming subscription from the connection.
ThrowIfDisposed() → void
Throws if disposed.
toString() String
A string representation of this object.
inherited
ValidateConnectionState(bool isConnectedExpected, String errorMessage) → void
Validates the state of the connection.

Operators

operator ==(Object other) bool
The equality operator.
inherited