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.
65 lines
1.9 KiB
65 lines
1.9 KiB
using System;
|
|
using System.Data;
|
|
using System.Data.SqlClient;
|
|
using UDDI.API;
|
|
using UDDI;
|
|
using UDDI.Diagnostics;
|
|
|
|
namespace UDDI.Replication
|
|
{
|
|
public class ControlledMessage
|
|
{
|
|
public static void Save( string fromOperatorKey, string toOperatorKey, MessageType messageType )
|
|
{
|
|
/*Debug.Enter();
|
|
|
|
SqlStoredProcedureAccessor sp = new SqlStoredProcedureAccessor();
|
|
|
|
sp.ProcedureName = "net_replication_controlledMessage_save";
|
|
|
|
sp.Parameters.Add( "@fromOperatorKey", SqlDbType.UniqueIdentifier );
|
|
sp.Parameters.Add( "@toOperatorKey", SqlDbType.UniqueIdentifier );
|
|
sp.Parameters.Add( "@messageType", SqlDbType.TinyInt );
|
|
|
|
sp.Parameters.SetGuidFromString( "@fromOperatorKey", fromOperatorKey );
|
|
sp.Parameters.SetGuidFromString( "@toOperatorKey", toOperatorKey );
|
|
sp.Parameters.SetShort( "@messageType", (short)messageType );
|
|
|
|
sp.ExecuteNonQuery();
|
|
|
|
Debug.Leave();*/
|
|
}
|
|
|
|
public static void Test( string fromOperatorKey, string toOperatorKey, MessageType messageType )
|
|
{
|
|
/*Debug.Enter();
|
|
|
|
SqlStoredProcedureAccessor sp = new SqlStoredProcedureAccessor();
|
|
|
|
sp.ProcedureName = "net_replication_controlledMessage_test";
|
|
|
|
sp.Parameters.Add( "@fromOperatorKey", SqlDbType.UniqueIdentifier );
|
|
sp.Parameters.Add( "@toOperatorKey", SqlDbType.UniqueIdentifier );
|
|
sp.Parameters.Add( "@messageType", SqlDbType.TinyInt );
|
|
|
|
sp.Parameters.SetGuidFromString( "@fromOperatorKey", fromOperatorKey );
|
|
sp.Parameters.SetGuidFromString( "@toOperatorKey", toOperatorKey );
|
|
sp.Parameters.SetShort( "@messageType", (short)messageType );
|
|
|
|
sp.ExecuteNonQuery();
|
|
|
|
Debug.Leave();*/
|
|
}
|
|
|
|
public static void Clear()
|
|
{
|
|
/*
|
|
Debug.Enter();
|
|
|
|
SqlStoredProcedureAccessor sp = new SqlStoredProcedureAccessor();
|
|
|
|
sp.ProcedureName = "net_replication_controlledMessage_clear";
|
|
sp.ExecuteNonQuery();*/
|
|
}
|
|
}
|
|
}
|