Properties
Methods
Invoke
1
2
3
public void Invoke(string event)
{
}
1
2
// Submit the entry for approval.
entry.Workflow.Invoke("submit");
InvokeAsync
1
2
3
public async Task InvokeAsync(string message)
{
}
1
2
// Submit the entry for approval.
await entry.Workflow.InvokeAsync("submit");
Invoke with Dictionary
1
2
3
public void Invoke(string event, Dictionary<string, object> data)
{
}
1
2
3
4
5
// Submit the entry for approval.
entry.Workflow.Invoke("submit", new Dictionary<string, object>
{
{ "message", "Added additional photos to the intro" }
});
InvokeAsync with Dictionary
1
2
3
public async Task InvokeAsync(string message)
{
}
1
2
3
4
5
6
7
// Submit the entry for approval.
await entry.Workflow.InvokeAsync("submit",
new Dictionary<string, object>
{
{ "message", "Added additional photos to the intro" }
}
);
Invoke with anonymous object
1
2
3
public void Invoke(string event, object data)
{
}
1
2
3
4
5
6
7
// Submit the entry for approval.
entry.Workflow.Invoke("submit",
new
{
Message = "Added additional photos to the intro"
};
);
InvokeAsync with anonymous object
1
2
3
public async Task InvokeAsync(string message)
{
}
1
2
3
4
5
6
7
// Submit the entry for approval.
await entry.Workflow.InvokeAsync("submit",
new
{
Message = "Added additional photos to the intro"
};
);