Skip to the content.

Dapper.AOT now allows cancellation to be specified via the parameters; however, only a single CancellationToken member is supported.

Bad:

conn.ExecuteAsync("some_proc", new { id, x = cancellationToken, y = cancellationToken });

Good:

conn.ExecuteAsync("some_proc", new { id, x = cancellationToken });

Also fine:

conn.ExecuteAsync("some_proc", cancellationToken);