Class StateChangedEventArgs
Provides data for the state of the EventSource connection.
Inherited Members
Namespace: LaunchDarkly.EventSource
Assembly: LaunchDarkly.EventSource.dll
Syntax
public class StateChangedEventArgs : EventArgs
Constructors
| Edit this page View SourceStateChangedEventArgs(ReadyState, IEnumerable<KeyValuePair<string, IEnumerable<string>>>)
Initializes a new instance of the StateChangedEventArgs class.
Declaration
public StateChangedEventArgs(ReadyState readyState, IEnumerable<KeyValuePair<string, IEnumerable<string>>> headers = null)
Parameters
Type | Name | Description |
---|---|---|
ReadyState | readyState | One of the ReadyState values, which represents the state of the EventSource connection. |
IEnumerable<KeyValuePair<string, IEnumerable<string>>> | headers | Response headers when the ReadyState is Open. Otherwise null. |
Properties
| Edit this page View SourceHeaders
Get the response headers. Only populated for Open.
Declaration
public IEnumerable<KeyValuePair<string, IEnumerable<string>>> Headers { get; }
Property Value
Type | Description |
---|---|
IEnumerable<KeyValuePair<string, IEnumerable<string>>> |
ReadyState
Gets the state of the EventSource connection.
Declaration
public ReadyState ReadyState { get; }
Property Value
Type | Description |
---|---|
ReadyState | One of the ReadyState values, which represents the state of the EventSource connection. |