Skip to content

Conversation

@bernardnormier
Copy link
Member

This PR implements a new Invoke demo in C# (Invoke2 for now, until we retire invoke).

I initially wanted to call it "SliceFree" and provide a Slice-free demo. However, even though this demo does not provide any Slice definition or use any generated code, it still uses InputStream / OutputStream to marshal/unmarshal data (strings) using the Ice encoding.

Using InputStream / OutputStream is unavoidable with Ice, even if we just want to transfer bytes.

This demo is primarily about demonstrating ice_invokeAsync (on Ice.ObjectPrx) and dispatchAsync (on Ice.Object).
In practice, these methods are more useful to build a Forwarding servant than to send Slice requests "by hand". Maybe we should drop this Invoke demo and provide a Forwarder demo instead?

@pepone
Copy link
Member

pepone commented Feb 10, 2025

In practice, these methods are more useful to build a Forwarding servant than to send Slice requests "by hand". Maybe we should drop this Invoke demo and provide a Forwarder demo instead?

Yes. I think a Forwarder demo makes more sense. Create Ice requests using the OutpuStream API is not a common use case.

@bernardnormier bernardnormier deleted the slice-free branch June 18, 2025 22:09
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.

2 participants