Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.9 KiB

  1. using System;
  2. using System.Data;
  3. using System.Data.SqlClient;
  4. using UDDI.API;
  5. using UDDI;
  6. using UDDI.Diagnostics;
  7. namespace UDDI.Replication
  8. {
  9. public class ControlledMessage
  10. {
  11. public static void Save( string fromOperatorKey, string toOperatorKey, MessageType messageType )
  12. {
  13. /*Debug.Enter();
  14. SqlStoredProcedureAccessor sp = new SqlStoredProcedureAccessor();
  15. sp.ProcedureName = "net_replication_controlledMessage_save";
  16. sp.Parameters.Add( "@fromOperatorKey", SqlDbType.UniqueIdentifier );
  17. sp.Parameters.Add( "@toOperatorKey", SqlDbType.UniqueIdentifier );
  18. sp.Parameters.Add( "@messageType", SqlDbType.TinyInt );
  19. sp.Parameters.SetGuidFromString( "@fromOperatorKey", fromOperatorKey );
  20. sp.Parameters.SetGuidFromString( "@toOperatorKey", toOperatorKey );
  21. sp.Parameters.SetShort( "@messageType", (short)messageType );
  22. sp.ExecuteNonQuery();
  23. Debug.Leave();*/
  24. }
  25. public static void Test( string fromOperatorKey, string toOperatorKey, MessageType messageType )
  26. {
  27. /*Debug.Enter();
  28. SqlStoredProcedureAccessor sp = new SqlStoredProcedureAccessor();
  29. sp.ProcedureName = "net_replication_controlledMessage_test";
  30. sp.Parameters.Add( "@fromOperatorKey", SqlDbType.UniqueIdentifier );
  31. sp.Parameters.Add( "@toOperatorKey", SqlDbType.UniqueIdentifier );
  32. sp.Parameters.Add( "@messageType", SqlDbType.TinyInt );
  33. sp.Parameters.SetGuidFromString( "@fromOperatorKey", fromOperatorKey );
  34. sp.Parameters.SetGuidFromString( "@toOperatorKey", toOperatorKey );
  35. sp.Parameters.SetShort( "@messageType", (short)messageType );
  36. sp.ExecuteNonQuery();
  37. Debug.Leave();*/
  38. }
  39. public static void Clear()
  40. {
  41. /*
  42. Debug.Enter();
  43. SqlStoredProcedureAccessor sp = new SqlStoredProcedureAccessor();
  44. sp.ProcedureName = "net_replication_controlledMessage_clear";
  45. sp.ExecuteNonQuery();*/
  46. }
  47. }
  48. }