Animatroller.Framework.Controller.CueList.CueInstance.StopExistingTask C# (CSharp) Method

StopExistingTask() public method

public StopExistingTask ( ILogicalDevice device, Cue cuePart ) : void
device ILogicalDevice
cuePart Animatroller.Framework.LogicalDevice.Cue
return void
            public void StopExistingTask(ILogicalDevice device, Cue.CueParts cuePart)
            {
                var key = Tuple.Create(device, cuePart);

                Task existingTask;
                if (this.tasks.TryGetValue(key, out existingTask))
                {
                    // Stop existing
                    Executor.Current.StopManagedTask(existingTask);
                }
            }