danielgerlag / danielgerlag/workflow-core

On wpf application workflow doesn't run at first

Open
#1,252 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
5.9k
Forks
1.3k
Avg merge
1d 1h
Merged PRs (30d)
5

Description

**Describe the bug**
On wpf application workflow doesn't run at first. On btn click it didnt execute workflow, but if i click in the button again, then the workflow runs.

**To Reproduce**
```
public partial class MainWindow : Window
{
private readonly IWorkflowHost _workflowHost;
public MainWindow()
{
InitializeComponent();

_workflowHost = ((App)Application.Current).serviceProvider.GetService();
_workflowHost.RegisterWorkflow();
}
private void btn_RunCodeGenerator_Click(object sender, RoutedEventArgs e)
{
_workflowHost.Start();
Console.ReadLine();
_workflowHost.StartWorkflow("CodeGenerationWorkflow", 1, containerModel);
Console.ReadLine();
_workflowHost.Stop();
}
}
```

**Expected behavior**
On btn click execute pipeline.

**Additional context**
Wpf application.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.