Example #1
0
File: Task.cs Project: hkiaipc/c2
 /// <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;
 }
Example #2
0
        /// <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);
        }
Example #3
0
File: Task.cs Project: hkiaipc/yh
 /// <summary>
 /// 
 /// </summary>
 /// <param name="opera"></param>
 public Task(Device device, Opera opera, Strategy strategy)
 {
     this.Device = device;
     this.Opera = opera;
     this.Strategy = strategy;
 }
Example #4
0
 /// <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);
 }
Example #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="opera"></param>
 public Task(Device device, Opera opera, Strategy strategy)
 {
     this.Device   = device;
     this.Opera    = opera;
     this.Strategy = strategy;
 }
Example #6
0
File: Task.cs Project: hkiaipc/c2
 public Task(Device device, Opera opera, Strategy strategy)
     : this(device, opera, strategy, TaskDefine.DefaultTaskTimeout)
 {
 }