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(); }
public static string DoSomethingWrapper(this ISomeInterface someObject) { return(someObject.DoSomething()); }