We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public class AspSample : StepBody { private static readonly Logger log = LogManager.GetCurrentClassLogger(); private static volatile int _counter = 0;
public AspSample() { log.Debug("AspSample init ..."); } public override ExecutionResult Run(IStepExecutionContext context) { if (_counter % 2 == 0) { Thread.Sleep(2000); } log.Debug($"StepBody: {nameof(AspSample)}"); AspSample._counter++; return ExecutionResult.Next(); }
}
var host = serviceProvider.GetService(); host.StartWorkflow("PTWorkFlow", 1, null); host.StartWorkflow("PTWorkFlow", 1, null); host.StartWorkflow("PTWorkFlow", 1, null); host.StartWorkflow("PTWorkFlow", 1, null);
Multiple process implementations were initiated。
Multiple processes are executed serially.......
The text was updated successfully, but these errors were encountered:
How do I make each process instance execute in a separate thread?
Sorry, something went wrong.
No branches or pull requests
public class AspSample : StepBody
{
private static readonly Logger log = LogManager.GetCurrentClassLogger();
private static volatile int _counter = 0;
}
var host = serviceProvider.GetService();
host.StartWorkflow("PTWorkFlow", 1, null);
host.StartWorkflow("PTWorkFlow", 1, null);
host.StartWorkflow("PTWorkFlow", 1, null);
host.StartWorkflow("PTWorkFlow", 1, null);
Multiple process implementations were initiated。
Multiple processes are executed serially.......
The text was updated successfully, but these errors were encountered: