-
-
Notifications
You must be signed in to change notification settings - Fork 447
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
Add Options property to IDocumentStore interface #1230
Comments
My vote is "no". If you dig back long enough there's an issue about only exposing a read only interface of StoreOptions, because users can actually modify the StoreOptions object after the DocumentStore is initialized, but most of that wouldn't actually take effect. I think this is just opening up users for confusion. |
Ok, the reason for my question is that inside a sessionlistener I have this code:
I need the storage definition via the IDocumentStore. Any alternative? |
@jeremydmiller maybe we could just add it as readonly? In thery we could only return some limited interface with readonly members? |
Check #745 which was closed with a code comment to expose |
Still saying to only do this if we pull out a readonly interface. Not sure how much value it adds or what you'd use it for. Most of it shouldn't be altered at runtime. You can get at the connections & serializer in other ways. What @mdissel asked for would require a new read only interface for |
I think that it's worth adding a read-only interface. |
Options is a required part of the DocumentStore, so i think we should add this to the IDocumentStore interface (in the next major version of course)
StoreOptions Options { get; }
The text was updated successfully, but these errors were encountered: