Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Make AddinFileSystemExtension a bit more extensible. #126

Closed

Conversation

KirillOsenkov
Copy link
Member

Allow RequiresIsolation to be set without the need to inherit from the class.

Allow overriding CleanupReflector() and make the reflector field protected.

Allow RequiresIsolation to be set without the need to inherit from the class.

Allow overriding CleanupReflector() and make the reflector field protected.
@KirillOsenkov
Copy link
Member Author

This is towards fixing #110.

See related:
#126

public virtual bool RequiresIsolation {
get { return true; }
}
public virtual bool RequiresIsolation { get; set; } = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this an API break? People overriding need to override the set now too.

Copy link
Member Author

@KirillOsenkov KirillOsenkov Nov 3, 2018

Choose a reason for hiding this comment

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

Yup! Curious how many consumers this will break. Not sure how to assess the risk vs. reward here.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure why we need to add a setter. Since this implies that someone will extend AddinFileSystemExtension anyway, why can't the derived class just override the getter behaviour?

Copy link
Member Author

Choose a reason for hiding this comment

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

It’s the opposite - Mikayla inherits from this class just to override the setter, and with this change she won’t have to.

Copy link
Contributor

Choose a reason for hiding this comment

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

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.

3 participants