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

[FeatureRequest] RunOnce flag onthe SailfishMethodSetup/Teardown and SailfishIterationSetup/Teardown #132

Open
paulegradie opened this issue Nov 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@paulegradie
Copy link
Owner

When specifying classnames for lifecycle methods, it would be great if we could specify, e.g. one method setup for two methods - and only have that setup run once.
e.g.

[SailfishMethodSetup(RunOnce: true, nameof(MethodA), nameof(MethodB))]
public void Setup(){ }

[SailfishMethod]
public void MethodA() => ...

[SailfishMethod]
public void MethodB() => ...

Where the Setup() method is executed once before the first method invocation.

@paulegradie paulegradie changed the title RunOnce flag onthe SailfishMethodSetup/Teardown and SailfishIterationSetup/Teardown [FeatureRequest] RunOnce flag onthe SailfishMethodSetup/Teardown and SailfishIterationSetup/Teardown Apr 1, 2024
@paulegradie paulegradie added the enhancement New feature or request label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant