Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CancellationToken for the current method should be injectable #777

Open
jeremydmiller opened this issue May 27, 2019 · 0 comments
Open

CancellationToken for the current method should be injectable #777

jeremydmiller opened this issue May 27, 2019 · 0 comments

Comments

@jeremydmiller
Copy link
Member

It's available off of Fixture.Context.Cancellation, but still, make it a little easier.

So, a Fixture grammar like this:

public Task DoSomething(CancellationToken cancellation)
{

}

The "cancellation" argument would not be a Cell, and would get the CancellationToken for the current specification

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

No branches or pull requests

1 participant