protected override async Task <Action <AsyncCodeActivityContext> > ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken) { // Inputs var folderpath = FolderPath.Get(context); var filepattern = FilePattern.Get(context); string[] filepath = Directory.GetFiles(@folderpath, filepattern); // Outputs return((ctx) => { FilePath.Set(ctx, filepath); }); }