Skip to content

Commit 81f77bc

Browse files
authored
Merge pull request #163 from Astn/aus-1002-remove-inprocessclient
AUS-1002: Remove the obsolete InProcessClient
2 parents 22a7b90 + a015e3e commit 81f77bc

4 files changed

Lines changed: 3 additions & 21 deletions

File tree

‎AustinHarris.JsonRpcTestN/Test.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public void TestCanCreateAndRemoveSession()
119119
}
120120

121121
[Test()]
122-
public void TestInProcessClient()
122+
public void ProcessStringOverloadNullableFloat()
123123
{
124124
string request = @"{""method"":""NullableFloatToNullableFloat"",""params"":[0.0],""id"":1}";
125125
string expectedResult = "{\"jsonrpc\":\"2.0\",\"result\":0.0,\"id\":1}";

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ behaviour: a breaking change to either means a new major version.
4747

4848
### Removed
4949

50+
- `InProcessClient` (obsolete since 1.x); call `JsonRpcProcessor.Process` directly.
5051
- The `JsonSerializerSettings` overloads of `JsonRpcProcessor.Process*` (pass a serializer instead; the Newtonsoft package has settings-based helpers).
5152
- Json.NET attributes on `JsonRequest`, `JsonResponse` and `JsonRpcException`.
5253
- The 1.x projects that 2.0 did not build: `AustinHarris.JsonRpc.Client`, `AustinHarris.JsonRpc.AspNet`, the Windows Phone 7 client, `JsonRpcTest` and `TestClient`. They were .NET Framework 4.0 `packages.config` projects outside the solution, referencing packages with open advisories; their source is in the git history before 2.0.

‎Json-Rpc/Client/InProcessJsonRpcClient.cs‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎docs/upgrading.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Most 1.x services run unchanged. Read the first list before you build, and the s
44

55
## Changes that break the build
66

7+
- `InProcessClient` (obsolete since 1.x); call `JsonRpcProcessor.Process` directly.
78
- **Session parameter.** The session parameter is spelled `sessionId` everywhere; a named argument `sessionID:` must be updated.
89
- **MethodInfo names.** `RpcMethod.FromMethod` is `FromMethodInfo` and `RpcInterfaceMethod.Method` is `MethodInfo` (both were new in the 2.0 preview).
910
- **Serializer.** `JsonRpcProcessor.Process(…, JsonSerializerSettings)` is gone from the core. Use `Config.SetSerializer(new NewtonsoftJsonRpcSerializer(settings))` from the Newtonsoft package, or the helper overloads there that take the settings.

0 commit comments

Comments
 (0)