ClientSponsor.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. //
  2. // System.Runtime.Remoting.Lifetime.ClientSponsor.cs
  3. //
  4. // Author: Duncan Mak ([email protected])
  5. //
  6. // 2002 (C) Copyright. Ximian, Inc.
  7. //
  8. using System;
  9. using System.Runtime.Remoting.Lifetime;
  10. namespace System.Runtime.Remoting.Lifetime {
  11. public class ClientSponsor : MarshalByRefObject, ISponsor
  12. {
  13. TimeSpan renewal_time;
  14. public ClientSponsor ()
  15. {
  16. renewal_time = new TimeSpan (0, 2, 0); // default is 2 mins
  17. }
  18. public ClientSponsor (TimeSpan time)
  19. {
  20. renewal_time = time;
  21. }
  22. public TimeSpan RenewalTime {
  23. get {
  24. return renewal_time;
  25. }
  26. set {
  27. renewal_time = value;
  28. }
  29. }
  30. [MonoTODO]
  31. public void Close ()
  32. {
  33. }
  34. [MonoTODO]
  35. ~ClientSponsor ()
  36. {
  37. throw new NotImplementedException ();
  38. }
  39. [MonoTODO]
  40. public override object InitializeLifetimeService ()
  41. {
  42. throw new NotImplementedException ();
  43. }
  44. [MonoTODO]
  45. public bool Register (MarshalByRefObject obj)
  46. {
  47. throw new NotImplementedException ();
  48. }
  49. [MonoTODO]
  50. public TimeSpan Renewal (ILease lease)
  51. {
  52. throw new NotImplementedException ();
  53. }
  54. [MonoTODO]
  55. public void Unregister (MarshalByRefObject obj)
  56. {
  57. throw new NotImplementedException ();
  58. }
  59. }
  60. }