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

Expose clientTimeout option #1322

Closed
wants to merge 3 commits into from
Closed

Expose clientTimeout option #1322

wants to merge 3 commits into from

Conversation

vicancy
Copy link
Member

@vicancy vicancy commented Jun 24, 2021

To support scenarios described here: #1318

{
if (millisecondsDelay <= 0)
if (!delay.HasValue)
Copy link
Member

Choose a reason for hiding this comment

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

How about inverting the if to make the logic more straight-forward?

@@ -29,7 +28,8 @@ internal class ServiceConnectionFactory : IServiceConnectionFactory
ConnectionDelegate connectionDelegate,
IClientConnectionFactory clientConnectionFactory,
IServerNameProvider nameProvider,
IServiceEventHandler serviceEventHandler)
IServiceEventHandler serviceEventHandler,
ServiceOptions options)
Copy link
Member

Choose a reason for hiding this comment

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

Change it to IOptions so that no need to add a WeakConnectionFactory?

@vicancy
Copy link
Member Author

vicancy commented Jun 25, 2021

Looks not the ideal solution

@vicancy vicancy closed this Jun 25, 2021
@vicancy vicancy deleted the f6 branch June 25, 2021 09:17
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