Beispiel #1
0
 public static IActivityBuilder FileExists(this IActivityBuilder builder, string path, [CallerLineNumber] int lineNumber = default, [CallerFilePath] string?sourceFile = default) =>
 builder.FileExists(activity => activity
                    .Set(x => x.Path, path),
                    lineNumber,
                    sourceFile);
Beispiel #2
0
 public static IActivityBuilder FileExists(this IActivityBuilder builder, Func <ActivityExecutionContext, ValueTask <string?> > path, [CallerLineNumber] int lineNumber = default, [CallerFilePath] string?sourceFile = default) =>
 builder.FileExists(activity => activity
                    .Set(x => x.Path, path),
                    lineNumber,
                    sourceFile);