Initial filewatcherworkflow
This commit is contained in:
parent
f0519e9f84
commit
36ab91c62f
|
|
@ -0,0 +1,23 @@
|
|||
using Elsa.Activities.File;
|
||||
using Elsa.Builders;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Elsa.Samples.FileWatcher
|
||||
{
|
||||
public class FileWatcherWorkflow : IWorkflow
|
||||
{
|
||||
public void Build(IWorkflowBuilder builder)
|
||||
{
|
||||
builder.Add<WatchDirectory>(setup =>
|
||||
{
|
||||
setup.Set(x => x.Directory, "C:\\Temp\\FileWatcher");
|
||||
setup.Set(x => x.ChangeType, WatcherChangeTypes.Created);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue