Comments (4)
Completely agreed. We are just browsing way to implement json-rpc server in our project and this need for inheritance is definitely inconvenience if not a no-go.
from json-rpc.net.
Thank you for understanding. Since my last message, I've done my research and overcame the need for inheritance even for the service contract interfaces (however, the fact that the service contract type is an interface is validated during runtime, but this is more of an assertion, a sanity check). I plan to publish it soon. Before I do, I plan a more advanced step: secondary interfaces (interface references returned in the method return objects) implemented on the server side and dynamically presented to the client side in the form of proxies. Apparently, this is not for all applications, as it can make the server too vulnerable to the DoS/DDoS attacks, but for some, this is a must-have.
Thank you.
—SA
from json-rpc.net.
If you would like to avoid the inheritance then you can bind your services manually instead of using the Abstract Base Class.
https://github.com/Astn/JSON-RPC.NET/blob/master/Json-Rpc/JsonRpcService.cs
Eg:
ServiceBinder.BindService(Handler.DefaultSessionId(), SomeServiceClassWithServiaceAnnotations);
// or
ServiceBinder.BindService(SomeSessionID, SomeServiceClassWithServiaceAnnotations);
from json-rpc.net.
from json-rpc.net.
Related Issues (20)
- IndexOutOfRangeException running TestServer_Console HOT 1
- System.FormatException not handled HOT 1
- Exception because a request object has an invalid id
- Ablity to handle extra parameters in the JSON-RPC method HOT 3
- How to generate the JSON text with named parameters? HOT 4
- Small update? HOT 3
- Add support for System.Text.Json HOT 2
- Error when using optional parameters HOT 1
- Add async/await support instead of IAsyncResult HOT 2
- Params conversion error raises internal error HOT 2
- Optional parameters parse bug HOT 1
- Synchronous handling HOT 4
- Configurable JSON serialization/deserialization HOT 5
- JsonRpcProcessor ignores JsonSerializerSettings on response serialization HOT 4
- Recursive binding of interfaces, custom method naming rules HOT 1
- faulty answer string with batches that contain requests with and without id's HOT 1
- Getting started with client?
- Single response when sending batch request. HOT 2
- Improve error message when method not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-rpc.net.