-
Notifications
You must be signed in to change notification settings - Fork 78
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
Changing the connection strings? #5
Comments
The original CSV connection string idea was to provide users the easiest possible way to create some 'destinations' for their bug reports. It was also chosen so that the 'configurator' tool would easy to maintain. I can see that this approach would totally eliminate the configuration tool as it would be unnecessarily hard to maintain it (which is OK as no such library has this sort of a tool bundled). I guess XML based configuration/connstr is the way to go for extensibility. I'll branch these latest changes into NBug 2.0 branch as these are begging to get serious. |
This would also allow to replace all the text comparison in the protocols. Like
becomes
How will the xml be loaded? Maybe like this: ProtocolSettingsXmlLoader creates ProtocolSettings Will there be 1 xml loader for each submission/connection? or will it read all the elements under the connection element as key- value pairs? Then the mail protocol can query the settings like this
A default value is also needed. this can replace all the if isNullOrEmpty in the protocol classes.
Maybe like this:
what do you think |
I had a discussion with a colleague this morning regarding the connection string format. The goal was the possibility to add certain templated fields to each destination. Say that you want to change the e-mail subject field to make it easier to sort the e-mail, or perhaps you want files stored via ftp to be stored hierarchically in folders:
{application}/{version}/{exception}/{timestamp}.zip
We think a lot can be achieved by moving away from connection strings and replacing them with full XML elements, something like this:
To implement this in the best possible way, I assume we'll change the protocol interface to something like this:
Is this a good idea?
The text was updated successfully, but these errors were encountered: