Ejemplo n.º 1
0
        private void StopFlowButton_Click(object sender, EventArgs e)
        {
            FlowEnvironment flow = sender as FlowEnvironment;

            if (flow == null)
            {
                return;
            }

            flow.Stop();
        }
Ejemplo n.º 2
0
        public void Unload(FlowEnvironment flow)
        {
            Log.Debug("Unloading {0}", flow.File.Name);

            try
            {
                flow.Stop();
                Log.Info("Unloaded {0}", flow.File.Name);
            }
            catch (Exception e)
            {
                OnNotification(new FlowTomatorNotification(LogVerbosity.Error, "Failed to unload the specified flow : " + flow.File.Name + ". " + e.Message));
            }

            Flows.Remove(flow);
        }
Ejemplo n.º 3
0
        private void RemoveFlowButton_Click(object sender, EventArgs e)
        {
            FlowEnvironment flow = sender as FlowEnvironment;

            if (flow == null)
            {
                return;
            }

            if (flow.Running)
            {
                flow.Stop();
            }

            Service.Unload(flow);
        }
Ejemplo n.º 4
0
        public void Unload(FlowEnvironment flow)
        {
            Log.Debug("Unloading {0}", flow.File.Name);

            try
            {
                flow.Stop();
                Log.Info("Unloaded {0}", flow.File.Name);
            }
            catch (Exception e)
            {
                OnNotification(new FlowTomatorNotification(LogVerbosity.Error, "Failed to unload the specified flow : " + flow.File.Name + ". " + e.Message));
            }

            Flows.Remove(flow);
        }