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 poll interval configurable #90

Merged
merged 4 commits into from
Oct 13, 2020

Conversation

vitalrev
Copy link
Contributor

No description provided.

Signed-off-by: Vitalij Reicherdt <vitalij.reicherdt@commerzbank.com>
@vitalrev vitalrev force-pushed the feature/poll-interval-configurable branch from 5d4255f to 35f6627 Compare September 26, 2020 19:53
@@ -46,6 +46,7 @@ public class IdentityConstants

public const string ChallengeIdQueryParameterName = "pid";
public const string ChallengePollUri = "vc/connect/poll";
public const int PollInterval = 2000;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any way we could make this configurable by reading an environment variable and fall back to the default value if that is not set?

I like the idea, however this requires the app to be rebuilt in order for the change to take effect.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've changed so that poll interval can be configured in appsettings.json and env var in manage script

@swcurran
Copy link
Contributor

swcurran commented Oct 8, 2020

@esune -- given what we found with argparse in Python land, maybe there is the equivalent we could use here?

@esune
Copy link
Member

esune commented Oct 8, 2020

@esune -- given what we found with argparse in Python land, maybe there is the equivalent we could use here?

Yes, it should be just a matter of binding the value to an environment variable or configuration rather than hard-coding it.

Signed-off-by: Vitalij Reicherdt <vitalij.reicherdt@icloud.com>
Signed-off-by: Vitalij Reicherdt <vitalij.reicherdt@icloud.com>
Signed-off-by: Vitalij Reicherdt <vitalij.reicherdt@icloud.com>
@vitalrev vitalrev requested a review from esune October 9, 2020 23:24
@esune esune merged commit 2e69044 into bcgov:master Oct 13, 2020
@esune
Copy link
Member

esune commented Oct 13, 2020

Thank you @vitalrev !

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

Successfully merging this pull request may close these issues.

3 participants