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

Various updates, fixes and enhancements #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

shaynevanasperen
Copy link

@shaynevanasperen shaynevanasperen commented Dec 11, 2021

I've exposed the underlying Subject<T> members in the BitstampClientStreams class. This is because I want to be able to stream fake messages for testing my program which uses this library. Although that was already possible by using fake IWebsocketClient objects, that method is very clunky and requires that I send raw text instead of just POCO objects. There is no good reason for hiding the Subject<T> members behind IObservable<T>, so the most straight-forward way to enable easy testing is to just expose the Subject<T> members directly.

Summary of changes:

  • Add missing functionality for authenticated (private) streams
  • Add missing functionality for ReconnectionRequest
  • Fix broken functionality for ErrorResponse
  • Introduce new IBitstampWebsocketClient interface
  • Remove superfluous IBitstampCommunicator interface and implementation class
  • Refactor to use file-scoped namespaces
  • Remove custom validation utility (so that exception stack traces are raised from the method itself rather than the ulitity method)
  • Replace LibLog package reference with Microsoft.Extensions.Logging.Abstractions (as LigLog is marked as deprecated)
  • Update other NuGet packages to the latest versions

… of just IObservables (to facilitate testing in consuming code by sending fake messages)

* Add missing functionality for authenticated (private) streams
* Add missing functionality for ReconnectionRequest
* Fix boken functionality for ErrorResponse
* Introduce new IBitstampWebsocketClient interface
* Remove superfluous IBitstampCommunicator interface and implementation class
* Refactor to use file-scoped namespaces
* Remove custom validation utility (so that exception stack traces are raised from the method itself rather than the ulitity method)
* Replace LibLog package reference with Microsoft.Extensions.Logging.Abstractions (as LigLog is marked as deprecated)
* Update other NuGet packages to the latest versions
@shaynevanasperen shaynevanasperen changed the title Update streams objects to publicly expose underlying Subjects Various updates, fixes and enhancements Dec 11, 2021
<PackageId>Bitstamp.Client.Websocket</PackageId>
<Version>1.0.0</Version>
<Version>2.0.0-beta.7</Version>
Copy link
Author

Choose a reason for hiding this comment

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

You'll want to update this to remove the prerelease suffix.

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.

1 participant