title: How to create RPC server for a C# application
body: <p>I have an existing C# application that I want to use it as a RPC server so a remote RPC client can call its C# functions.  I've searched and read the Microsoft RPC architecture in its Windows SDK.  It only uses C/C++ to create the RPC server application which requires generation of IDL, ACF files &amp; the use of the MIDL compiler.   </p>
  
  <p>Microsoft RPC Server tutorial:
  <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa378869(v=vs.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/aa378869(v=vs.85).aspx</a></p>
  
  <p>Is there a way I can use my existing C# application as a RPC server to work in such RPC architecture?  Perhaps RPC server C wrapper code calling my C# code? I'm just thinking out loud. </p>
  
  <p>Thank you for your help, some sample code illustration would be very useful.</p>