/// <summary> /// /// </summary> /// <param name="opera"></param> public Task(Device device, Opera opera, Strategy strategy, TimeSpan timeout) { this.Device = device; this.Opera = opera; this.Strategy = strategy; this.Timeout = timeout; }
/// <summary> /// /// </summary> /// <param name="state"></param> private void FDCallbackTarget(object state) { object[] array = (object[])state; CommuniPort from = (CommuniPort)array[0]; Opera op = (Opera)array[1]; ParseResult pr = (ParseResult)array[2]; OnFDEvent(from, op, pr); }
/// <summary> /// /// </summary> /// <param name="opera"></param> public Task(Device device, Opera opera, Strategy strategy) { this.Device = device; this.Opera = opera; this.Strategy = strategy; }
/// <summary> /// /// </summary> /// <param name="soft"></param> /// <param name="task"></param> private void AddTask(CommuniSoft soft, Device device, Opera op) { Task task = new Task(device, op, new ImmediateStrategy()); soft.TaskManager.Tasks.AddToHead(task); NUnit.UiKit.UserMessage.DisplayInfo(strings.CommandSubmit); }
public Task(Device device, Opera opera, Strategy strategy) : this(device, opera, strategy, TaskDefine.DefaultTaskTimeout) { }