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

Make CollectionAgeLimitAttribute easy to use! #5961

Merged
merged 5 commits into from
Sep 27, 2019
Merged

Conversation

bluexo
Copy link
Contributor

@bluexo bluexo commented Sep 18, 2019

This PR make CollectionAgeLimitAttribute user friendly .

// This grain has 10 hours age limit
[CollectionAgeLimit(Hours = 10)]
class SampleGrainClass1 : Grain ...
{
}

// This grain has 1 day +10 hours + 30 minutes age limit
[CollectionAgeLimit(Days = 1, Hours = 10 , Minutes = 30)]
class SampleGrainClass2 : Grain ...
{
}

//This grains has 32767 days age limit
[CollectionAgeLimit(AlwaysActive = true)]
class SampleGrainClass3 : Grain ...
{
}

@sergeybykov sergeybykov merged commit 648c97f into dotnet:master Sep 27, 2019
@sergeybykov
Copy link
Contributor

Thank you, @bluexo!

@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants