Beispiel #1
0
        static void Main(string[] args)
        {
            String filename = AppDomain.CurrentDomain.SetupInformation.ConfigurationFile;

            RemotingConfiguration.Configure(filename);

            ISomeInterface obj = (ISomeInterface)RemotingHelper.CreateProxy(typeof(ISomeInterface));

            Console.WriteLine("Calling synchronously...");
            obj.DoSomething();
            Console.WriteLine("Completed ...");

            Console.WriteLine("Retrieved customer {0} {1}", cust.FirstName, cust.LastName);
            Console.ReadLine();
        }
Beispiel #2
0
 public static string DoSomethingWrapper(this ISomeInterface someObject)
 {
     return(someObject.DoSomething());
 }