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

Introduce explicit behaviour for attempting to mutate ITransportConfiguration via the descriptor after it's first use #139

Open
stevejgordon opened this issue Nov 20, 2024 · 0 comments
Labels
api approved API was approved in API review, it can be implemented enhancement New feature or request

Comments

@stevejgordon
Copy link
Collaborator

Today, we generally treat the ITransportConfiguration as immutable once passed into the DistributedTransport constructor. The behaviour of modifying settings after this occurs is undefined. We propose to make the immutability explicit by introducing internal methods to mark the configuration as "locked" after it has been received by the ITransport. After this point, any calls to the descriptor methods will throw an exception, signalling the invalid operation.

@stevejgordon stevejgordon added api approved API was approved in API review, it can be implemented enhancement New feature or request labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api approved API was approved in API review, it can be implemented enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant