Skip to content

Add NameOf utilty function for workflows and tasks #12

Merged
ognjenkatic merged 3 commits into
masterfrom
feat/master/wf-task-name-util
Jun 15, 2022
Merged

Add NameOf utilty function for workflows and tasks #12
ognjenkatic merged 3 commits into
masterfrom
feat/master/wf-task-name-util

Conversation

@boma96

@boma96 boma96 commented Jun 15, 2022

Copy link
Copy Markdown
Collaborator

NameOf function is compiled to constant string corresponding to Name property of conductor object(workflow, subworkflow or simple task).

Example:

builder.AddTask(wf => wf.Task,
                wf => new()
                {
                    InterpolatedWfName = $"WfName: {NamingUtil.NameOf<SimpleTaskExample>()}",
                    WorkflowName = NamingUtil.NameOf<WfExample>()
                });

@boma96
boma96 requested a review from ognjenkatic June 15, 2022 10:42
@boma96
boma96 force-pushed the feat/master/wf-task-name-util branch from b093bc3 to 0162874 Compare June 15, 2022 11:59

@ognjenkatic ognjenkatic left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@ognjenkatic
ognjenkatic merged commit fde159f into master Jun 15, 2022
@ognjenkatic
ognjenkatic deleted the feat/master/wf-task-name-util branch July 1, 2022 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants