mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
[PR #633] Support DI and Mocking better. #1237
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/ElectronNET/Electron.NET/pull/633
State: closed
Merged: Yes
Convert main static references off of
Electroninto interface implementation and expose the underlying Socket for low level interaction.This is a utility PR to improve support for testing and also better support standard DI practices. Additionally included is exposure of the underlying Socket vie the ApplicationSocket class so that we can support more low level socket interactions without having to update the ElectronNET repo directly.
Note: I applied all the comment documentation to the interfaces but did not convert origination to use
<inheritdoc />as I felt that would be inappropriate without some feedback.