示例#1
0
 protected abstract Task <TResult> ExecuteAsync(TaskContext context, TInput input);
示例#2
0
 public virtual Task <string> RunAsync(TaskContext context, string input)
 {
     return(Task.FromResult(Run(context, input)));
 }
示例#3
0
 /*protected TaskActivity()
  * {
  *  DataConverter = new JsonDataConverter();
  * }
  *
  * protected TaskActivity(DataConverter dataConverter)
  * {
  *  if (dataConverter != null)
  *  {
  *      DataConverter = dataConverter;
  *  }
  *  else
  *  {
  *      DataConverter = new JsonDataConverter();
  *  }
  * }
  *
  * public DataConverter DataConverter { get; protected set; }
  */
 public override string Run(TaskContext context, string input)
 {
     // will never run
     return(string.Empty);
 }
示例#4
0
 public abstract string Run(TaskContext context, string input);