Replies: 2 comments 1 reply
-
|
JSON-RPC has no authentication protocol at all. |
Beta Was this translation helpful? Give feedback.
-
|
yes, using one object instance as local target for every rpc connection makes this puzzle easy. I tried to implement sth like the Context that is being used in ASP with a static AsyncLocal and setting that with a custom IJsonRpcMessageHandler (just to explore the concept) A bit more nice to look at variant would be something else I thought about.
Its optional so on the client side i can call not sure where could be a nice place to implement this - if there is one. This could have a valuefactory associated with it and that knows its RPC object so we can do whatever (simply map it from a dictionary) OR it could also reference another proxy that lives on that rpc object (making it easy to tie identifying logic/objects/data to it) because its more customizable, and doesnt pass that rather heavy (in terms of references) object around and would let me have sth small like a object with 3 string values on it.
but at this point the cost of the complexity does not really make sense compared to just passing whatever i want from the child.... tbh, a simple "optional Guid as function param" that identifies a RPC session would be enough to do anything without too much change. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Is there a elegant way to get caller information in a rpcfunction?
when im adding as local target instance implementing my contract for many clients?
AKA:
connecting like this:
having interface and impl like this:
Beta Was this translation helpful? Give feedback.
All reactions