pieceofsummer / Hangfire.Console

Job console extension for Hangfire
MIT License
436 stars 80 forks source link

Named progress Bar #41

Closed a-karpov-parc closed 7 years ago

a-karpov-parc commented 7 years ago

Can I give a name to the ProgressBar? Several processes are performed and each carries a named. Each process has its own ProgressBar template

pieceofsummer commented 7 years ago

Not the way the progress bars are currently handled.

As a workaround, you can simply write a text line with a name before the progress bar, like:

context.WriteLine("Total:");
var totalBar = context.WriteProgressBar();
context.WriteLine("Persistent:");
var persistentBar = context.WriteProgressBar();
a-karpov-parc commented 7 years ago

That's exactly what I did. Results on the screen: first the title, and below progressBars ))))))

pieceofsummer commented 7 years ago

Just added support for named progress bars in 1.3.6. You can test it as soon as it gets indexed on NuGet.

a-karpov-parc commented 7 years ago

YOU ARE BIGMAN!!!!!) senx!