Skip to content

[v0.11] Argument binding for Guid type

Compare
Choose a tag to compare
@k0dep k0dep released this 04 Apr 18:15
· 39 commits to master since this release

Now you can pass Guid argument into callback/action methods:

[Action("/start", "start")]
void Start()
{
    var guid = Guid.NewGuid();
    Push("Click the button");
    Button($"guid: {guid}", Q(GuidArgumentButtonHandler, guid));
}

[Action]
async Task GuidArgumentButtonHandler(Guid guid)
{
    Push($"value: {guid}");
}