Ejemplo n.º 1
0
        public void ClearDataBaseOnNMS()
        {
            NetTcpBinding binding = new NetTcpBinding();
            ChannelFactory <IOMSClient> factoryToTMS = new ChannelFactory <IOMSClient>(binding, new EndpointAddress("net.tcp://localhost:6080/TransactionManagerService"));

            proxyToTransactionManager = factoryToTMS.CreateChannel();
            proxyToTransactionManager.ClearNMSDB();
        }
Ejemplo n.º 2
0
        public void ClearDataBaseOnNMS()
        {
            NetTcpBinding binding = new NetTcpBinding();

            binding.CloseTimeout           = TimeSpan.FromMinutes(10);
            binding.OpenTimeout            = TimeSpan.FromMinutes(10);
            binding.ReceiveTimeout         = TimeSpan.FromMinutes(10);
            binding.SendTimeout            = TimeSpan.FromMinutes(10);
            binding.MaxReceivedMessageSize = Int32.MaxValue;
            ChannelFactory <IOMSClient> factoryToTMS = new ChannelFactory <IOMSClient>(binding, new EndpointAddress("net.tcp://localhost:6080/TransactionManagerService"));

            proxyToTransactionManager = factoryToTMS.CreateChannel();
            proxyToTransactionManager.ClearNMSDB();
        }