Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose write events to .NET API consumer #153

Merged
merged 8 commits into from
Jan 21, 2024
Merged

Conversation

haga-rak
Copy link
Owner

This update allows a .NET consumer to access read-only writer events throught Proxy.Writer property.

The main events accessibles are:

  • proxy.Writer.ExchangeUpdated which is triggered when on of the events in ArchiveUpdateType occured.
  • proxy.Writer.ConnectionUpdated which is triggered when a new connection is added or updated.

These events provide only access code for read-only hook. For hooks that alter the exchange or the connection, consider using straightforward implementation of Filter and Action

fluxzy-ci and others added 8 commits January 21, 2024 18:42
The access level of the 'Writer' property in the Proxy.cs file has been changed from internal to public. This change also includes the addition of a brief summary for the property, which will be visible in intellisense and documentation.
In the RealtimeArchiveWriter class, comments detailing what each method does were added. Each summary includes a concise explanation of the method purpose, the expected parameters, and potential return values where applicable. Included descriptions for the class itself and the ArchiveUpdateType enum as well.
The Short timeout constant has been added to the TimeoutConstants class. This new constant will return 15 if the current platform is OSX, and 10 otherwise. This will help the test cases to run with appropriate timeouts based on the OS platform.
A new file named EventWriterTests.cs was added in the UnitTests directory. This file contains tests for the EventWriter class of the Fluxzy library. In particular, it provides a test for checking the completion of an exchange update through a proxy.
@haga-rak haga-rak added the enhancement New feature or request label Jan 21, 2024
@haga-rak haga-rak merged commit dd79fd3 into main Jan 21, 2024
3 checks passed
@haga-rak haga-rak deleted the dev/expose-write-events branch January 21, 2024 22:04
haga-rak added a commit that referenced this pull request Feb 12, 2024
* Increase access level of property in Proxy.cs

The access level of the 'Writer' property in the Proxy.cs file has been changed from internal to public. This change also includes the addition of a brief summary for the property, which will be visible in intellisense and documentation.

* Add method documentation to RealtimeArchiveWriter

In the RealtimeArchiveWriter class, comments detailing what each method does were added. Each summary includes a concise explanation of the method purpose, the expected parameters, and potential return values where applicable. Included descriptions for the class itself and the ArchiveUpdateType enum as well.

* Add Short timeout constant to TimeoutConstants

The Short timeout constant has been added to the TimeoutConstants class. This new constant will return 15 if the current platform is OSX, and 10 otherwise. This will help the test cases to run with appropriate timeouts based on the OS platform.

* Add EventWriterTests for Fluxzy

A new file named EventWriterTests.cs was added in the UnitTests directory. This file contains tests for the EventWriter class of the Fluxzy library. In particular, it provides a test for checking the completion of an exchange update through a proxy.

---------

Co-authored-by: fluxzy-ci <admin@fluxzy.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant