The mapping for Slice data types to C# is identical on the client side and server side. This means that everything in the Client-Side Slice-to-C-Sharp Mapping also applies to the server side. However, for the server side, there are a few additional things you need to know — specifically, how to:
- Implement servants
- Pass parameters and throw exceptions
- Create servants and register them with the Ice run time.
Because the mapping for Slice data types is identical for clients and servers, the server-side mapping only adds a few additional mechanisms to the client side: a few rules for how to derive servant classes from skeletons and how to register servants with the server-side run time.
Although the examples we present in this chapter are very simple, they accurately reflect the basics of writing an Ice server. Of course, for more sophisticated servers, you will be using additional APIs, for example, to improve performance or scalability. However, these APIs are all described in Slice, so, to use these APIs, you need not learn any C# mapping rules beyond those described here.
- Server-Side C-Sharp Mapping for Interfaces
- Parameter Passing in C-Sharp
- Raising Exceptions in C-Sharp
- Tie Classes in C-Sharp
- Object Incarnation in C-Sharp
- Asynchronous Method Dispatch (AMD) in C-Sharp
- Example of a File System Server in C-Sharp