Skip to content

Conversation

@kinyoklion
Copy link
Member

No description provided.

/// Occurs when the connection to the EventSource API has been opened.
/// </summary>
public event EventHandler<EventArgs> ConnectionOpened;
public event EventHandler<EventSourceOpenedEventArgs> ConnectionOpened;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The EventSource service is internal, so there isn't any external impact from this change.

/// A collection of header values when the ReadyState is Open, or null.
/// </value>
/// </summary>
public IEnumerable<KeyValuePair<string,IEnumerable<string>>> Headers { get; }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the public facing change.

/// <param name="readyState">One of the <see cref="EventSource.ReadyState"/> values, which represents the state of the EventSource connection.</param>
public StateChangedEventArgs(ReadyState readyState)
/// <param name="headers">Response headers when the <see cref="StateChangedEventArgs.ReadyState"/> is <see cref="ReadyState.Open"/>. Otherwise null.</param>
public StateChangedEventArgs(ReadyState readyState, IEnumerable<KeyValuePair<string,IEnumerable<string>>> headers = null)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This constructor is public, but isn't something someone would really need to use in normal operation.

Likely it should have been internal.

@kinyoklion kinyoklion marked this pull request as ready for review February 21, 2025 00:37
@kinyoklion kinyoklion requested a review from a team as a code owner February 21, 2025 00:37
@kinyoklion kinyoklion merged commit e2cba63 into main Feb 24, 2025
2 checks passed
@kinyoklion kinyoklion deleted the rlamb/emsr-134/event-source-headers branch February 24, 2025 18:26
kinyoklion pushed a commit that referenced this pull request Feb 24, 2025
🤖 I have created a release *beep* *boop*
---


##
[5.2.0](5.1.0...5.2.0)
(2025-02-24)


### Features

* Report event source headers on open.
([#104](#104))
([e2cba63](e2cba63))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants