Skip to content

Tylland/Flower

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flower

Get Started

Create a Flower

First thing we need to do i s to create a flow logger

 var flower = new FlowerConfiguration()
                .WriteTo.File(@"c:\temp\flows.log")
                .CreateFlower();

Then we can start logging! This is done by first creating a flow configuration and then call the Seed method.

 var flowConfig = new FlowConfiguration
           {
               StepNames = new[] { "First", "Second", "Third" },
               Name = "Test Group",
               FinishTimeout = TimeSpan.FromSeconds(10),
               StepTimeout = TimeSpan.FromSeconds(20)
           };
           
flower.Seed("0001", flowConfig);

By calling Seed the first step in the flow is registred. We register the other steps in the flow with Feed method:

flower.Feed("0001", "Second");
flower.Feed("0001", "Third");

About

A framework built for logging flows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages