Client.cs
上传用户:jasonxu888
上传日期:2007-03-28
资源大小:4316k
文件大小:1k
源码类别:

.net编程

开发平台:

C#

  1. using System;
  2. using System.Runtime.Remoting;
  3. using System.Runtime.Remoting.Lifetime;
  4. using System.Threading;
  5. using Server; // from generated_meta.dll
  6. using VersionedSerializableObjects;
  7. namespace Client
  8. {
  9. class Client
  10. {
  11. static void Main(string[] args)
  12. {
  13. String filename = "client.exe.config";
  14. RemotingConfiguration.Configure(filename);
  15. SomeSAO sao = new SomeSAO();
  16. Customer cust = sao.getCustomer();
  17. cust.FirstName="John";
  18. cust.LastName="Doe";
  19. cust.DateOfBirth = new DateTime(1950,12,12);
  20. cust.dumpInfo();
  21. sao.doSomeThing(cust);
  22. Console.WriteLine("Finished ... press <return> to exit");
  23. Console.ReadLine();
  24. }
  25. }
  26. }