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

WIP: Added Azure Build Pipeline configuration #3

Closed
wants to merge 11 commits into from

Conversation

ardave
Copy link
Contributor

@ardave ardave commented Oct 3, 2018

No description provided.

@knocte
Copy link
Member

knocte commented Oct 3, 2018

Why are there commits in this PR that are already in master? can you rebase please?

knocte and others added 9 commits October 4, 2018 06:55
Broken by 516a3c4c2cbae0f90a9e42bc84565cb47522f8bb oops!
* Instead of InvalidOperationException, use FormatException.
* Instead of throwing generic (and not catchable)System.Exception,
throw a new typed Rpc-prefixed exception.

This is so that Nethereum consumers can catch faulty responses
from buggy servers, like demonstrated in:
Nethereum/Nethereum#380 (comment)
* Moved to ClientBase all inner request implementations, historically there was a separtation due to the dependency of RPC to EdjCase.JsonRPC.Core.
* Ipc / UnixSockets / websockets now use @knocte 's new RPCFormatException (all use the same class)
* Ensure everything uses ConfigureAwait (false)
When thinking of contributing a new Nethereum.JsonRpc
client type (the TCP one) to Nethereum, I thought: "but
wait a second, the result of this would be a library
that I will actually use to talk to Electrum servers!"
(which means: nothing related to Ethereum at all), so
I thought: "Nethereum.JsonRpc should probably live as
a general-purpose library in the .NET world, no need
to mark it as 'Ethereum' related".

So this subproject was born. I extracted @juanfranblanco's
libs into this new JsonRpcSharp proof of concept, leaving
git history intact (via `git clean -fdx && git tag | xargs git tag -d && git filter-branch --index-filter 'git rm --cached -qr --ignore-unmatch -- . && git reset -q $GIT_COMMIT -- src/Nethereum.JsonRpc.Client src/Nethereum.JsonRpc.IpcClient src/Nethereum.JsonRpc.RpcClient src/Nethereum.JsonRpc.WebSocketClient src/Nethereum.JsonRpc.UnixIpcClient lib' --prune-empty -- --all`).

After that, replaced any text occurrence of Nethereum.JsonRpc
with JsonRpcSharp (even in filenames and dirnames), and
NethereumVersion with JsonRpcSharpVersion, and deleted any
ethereum occurrences.
@knocte
Copy link
Member

knocte commented Oct 26, 2018

Replaced by #4

@knocte knocte closed this Oct 26, 2018
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.

None yet

3 participants