Esempio n. 1
0
        /// <summary>
        /// Deletes the down time.
        /// </summary>
        /// <param name="connectionDownTime">The connection down time.</param>
        /// <returns></returns>
        public static bool DeleteDownTime(ConnectionDownTime connectionDownTime)
        {
            Integration.IntegrationController controller = new Integration.IntegrationController();
            bool success;

            try
            {
                success = controller.DeleteDownTime(connectionDownTime);
            }
            catch (SocketException)
            {
                throw;
            }
            return(success);
        }
Esempio n. 2
0
        /// <summary>
        /// Deletes the task.
        /// </summary>
        /// <param name="taskToDelete">The task to delete.</param>
        /// <returns></returns>
        public static bool DeleteTask(Task taskToDelete)
        {
            Integration.IntegrationController controller = new Integration.IntegrationController();
            bool success;

            try
            {
                success = controller.DeleteTask(taskToDelete);
            }
            catch (SocketException)
            {
                throw;
            }
            return(success);
        }
Esempio n. 3
0
        /// <summary>
        /// Deletes the connection.
        /// </summary>
        /// <param name="connectionToRemove">The connection to remove.</param>
        /// <returns></returns>
        public static bool DeleteConnection(Connection connectionToRemove)
        {
            Integration.IntegrationController controller = new Integration.IntegrationController();
            bool success;

            try
            {
                success = controller.DeleteConnection(connectionToRemove);
            }
            catch (SocketException)
            {
                throw;
            }
            return(success);
        }
Esempio n. 4
0
        /// <summary>
        /// Gets the task.
        /// </summary>
        /// <param name="taskId">The task id.</param>
        /// <returns></returns>
        public static Task GetTask(int taskId)
        {
            Integration.IntegrationController controller = new Integration.IntegrationController();

            Task task;

            try
            {
                task = controller.GetTask(taskId);
            }
            catch (SocketException)
            {
                throw;
            }
            return(task);
        }
Esempio n. 5
0
        // RemotingConfiguration.Configure("web.config", true);
        /// <summary>
        /// Gets the tasks.
        /// </summary>
        /// <returns></returns>
        public static List <Task> GetTasks()
        {
            Integration.IntegrationController controller = new Integration.IntegrationController();

            List <Task> tasks;

            try
            {
                tasks = controller.GetTasks();
            }
            catch (SocketException)
            {
                throw;
            }
            return(tasks);
        }
Esempio n. 6
0
        /// <summary>
        /// Gets the down times.
        /// </summary>
        /// <param name="connectionId">The connection id.</param>
        /// <returns></returns>
        public static List <ConnectionDownTime> GetDownTimes(int?connectionId)
        {
            Integration.IntegrationController controller = new Integration.IntegrationController();

            List <ConnectionDownTime> connectionDownTimes;

            try
            {
                connectionDownTimes = controller.GetDownTimes(connectionId == 0?null:connectionId);
            }
            catch (SocketException)
            {
                throw;
            }
            return(connectionDownTimes);
        }
Esempio n. 7
0
        /// <summary>
        /// Gets the down time.
        /// </summary>
        /// <param name="downTimeId">The down time id.</param>
        /// <returns></returns>
        public static ConnectionDownTime GetDownTime(int downTimeId)
        {
            Integration.IntegrationController controller = new Integration.IntegrationController();

            ConnectionDownTime downTime;

            try
            {
                downTime = controller.GetDownTime(downTimeId);
            }
            catch (SocketException)
            {
                throw;
            }
            return(downTime);
        }
Esempio n. 8
0
        /// <summary>
        /// Saves the down time.
        /// </summary>
        /// <param name="connectionDownTime">The connection down time.</param>
        /// <returns></returns>
        public static int SaveDownTime(ConnectionDownTime connectionDownTime)
        {
            Integration.IntegrationController controller = new Integration.IntegrationController();

            int returnValue;

            try
            {
                returnValue = controller.SaveDownTime(connectionDownTime);
            }
            catch (SocketException)
            {
                throw;
            }
            return(returnValue);
        }
Esempio n. 9
0
        //TcpClientChannel chan = new TcpClientChannel();
        //ChannelServices.RegisterChannel(chan, true);

        // RemotingConfiguration.Configure("web.config", true);
        /// <summary>
        /// Gets the tasks.
        /// </summary>
        /// <returns></returns>
        public static List <string> GetQueues()
        {
            Integration.IntegrationController controller = new Integration.IntegrationController();

            List <string> queues;

            try
            {
                queues = controller.GetQueues();
            }
            catch (SocketException)
            {
                throw;
            }
            return(queues);
        }
Esempio n. 10
0
        /// <summary>
        /// Gets the connection.
        /// </summary>
        /// <param name="connectionId">The connection id.</param>
        /// <returns></returns>
        public static Connection GetConnection(int connectionId)
        {
            Integration.IntegrationController controller = new Integration.IntegrationController();

            Connection connection;

            try
            {
                connection = controller.GetConnection(connectionId);
            }
            catch (SocketException)
            {
                throw;
            }
            return(connection);
        }
Esempio n. 11
0
        /// <summary>
        /// Gets the connections.
        /// </summary>
        /// <param name="connectionType">Type of the connection.</param>
        /// <param name="channelType">Type of the channel.</param>
        /// <returns></returns>
        public static List <Connection> GetConnections(Connection.ConnectionTypeEnum?connectionType, Connection.ChannelTypeEnum?channelType)
        {
            Integration.IntegrationController controller = new Integration.IntegrationController();

            List <Connection> connections;

            try
            {
                connections = controller.GetConnections(connectionType.Value, channelType.Value);
            }
            catch (SocketException)
            {
                throw;
            }
            return(connections);
        }
Esempio n. 12
0
        /// <summary>
        /// Gets the connections.
        /// </summary>
        /// <returns></returns>
        public static List <Connection> GetConnections()
        {
            Integration.IntegrationController controller = new Integration.IntegrationController();

            List <Connection> connections;

            try
            {
                connections = controller.GetConnections();
            }
            catch (SocketException)
            {
                throw;
            }
            return(connections);
        }
Esempio n. 13
0
        /// <summary>
        /// Saves the task.
        /// </summary>
        /// <param name="task">The task.</param>
        /// <returns></returns>
        public static int SaveTask(Task task)
        {
            Integration.IntegrationController controller = new Integration.IntegrationController();

            int returnValue;

            try
            {
                returnValue = controller.SaveTask(task);
            }
            catch (SocketException)
            {
                throw;
            }
            return(returnValue);
        }