2
0

SqlNotificationRequest.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //
  2. // System.Data.Sql.SqlNotificationRequest
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2003
  8. //
  9. #if NET_1_2
  10. using System;
  11. namespace System.Data.Sql {
  12. public class SqlNotificationRequest
  13. {
  14. #region Fields
  15. string id;
  16. string service;
  17. int timeout;
  18. #endregion // Fields
  19. #region Constructors
  20. [MonoTODO]
  21. public SqlNotificationRequest ()
  22. : this (null, null, 0)
  23. {
  24. }
  25. [MonoTODO]
  26. public SqlNotificationRequest (string id, string service, int timeout)
  27. {
  28. if (service == null)
  29. throw new ArgumentNullException ();
  30. if (timeout < 0)
  31. throw new ArgumentOutOfRangeException ();
  32. Id = id;
  33. Service = service;
  34. Timeout = timeout;
  35. }
  36. #endregion // Constructors
  37. #region Properties
  38. public string Id {
  39. get { return id; }
  40. set { id = value; }
  41. }
  42. public string Service {
  43. get { return service; }
  44. set { service = value; }
  45. }
  46. public int Timeout {
  47. get { return timeout; }
  48. set { timeout = value; }
  49. }
  50. #endregion // Properties
  51. }
  52. }
  53. #endif