protected abstract Task <TResult> ExecuteAsync(TaskContext context, TInput input);
public virtual Task <string> RunAsync(TaskContext context, string input) { return(Task.FromResult(Run(context, input))); }
/*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); }
public abstract string Run(TaskContext context, string input);