2020-01-12 19:15:57 +00:00
|
|
|
using System;
|
|
|
|
|
using Elsa.Builders;
|
|
|
|
|
using Elsa.Services.Models;
|
|
|
|
|
|
|
|
|
|
// ReSharper disable once CheckNamespace
|
2020-02-15 19:32:16 +00:00
|
|
|
namespace Elsa.Activities.Console
|
2020-01-12 19:15:57 +00:00
|
|
|
{
|
|
|
|
|
public static class WriteLineExtensions
|
|
|
|
|
{
|
2020-10-03 10:48:25 +00:00
|
|
|
public static WriteLine WithText(this WriteLine activity, string value) => activity.With(x => x.Text, value);
|
|
|
|
|
public static WriteLine WithText(this WriteLine activity, Func<ActivityExecutionContext, string> value) => activity.With(x => x.Text, value);
|
|
|
|
|
public static WriteLine WithText(this WriteLine activity, Func<string> value) => activity.With(x => x.Text, value);
|
2020-01-12 19:15:57 +00:00
|
|
|
}
|
|
|
|
|
}
|