-
Notifications
You must be signed in to change notification settings - Fork 216
New Forwarder demo in C# #283
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
Conversation
|
|
||
| using VisitorCenter; | ||
|
|
||
| namespace Server; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's actually the best namespace for the server in the demos: it's consistent with C# naming conventions and it's the same for all demos.
In IceRPC, we could not use namespace Server as it conflicts with class IceRpc.Server when using IceRpc.
| @@ -0,0 +1,47 @@ | |||
| // Copyright (c) ZeroC, Inc. | |||
|
|
|||
| using Ice; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The using Ice is necessary to get the Current extension method createOutgoingResponse.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me too!
This PR implements a new Forwarder demo in C#.
It shows how to write a servant that forwards all requests as-is.