Scott Campbell

Results 9 comments of Scott Campbell

IMHO, hide it behind a config flag, to opt-in as an early adopter. And later when there is a major release, change the defaults, to opt-in by default. If there...

RE: XMLHttpRequests I'm using axios in my custom template. I would also want to have node support, for SSR. There are some other similar lightweight isomorphic-fetch polyfill libraries, I'm not...

> I know many prefer string union types over string enums I generally prefer string unions. Unless the name is different from the value. And has some additional semantic meaning,...

> Just to clarify, when you say optional you mean you would like like to be able to control if they are generated or not? My original intent was "optional...

Both source code and plugin system. Edit: When I created this issue, I was thinking about the source code. I didn't have too much trouble writing a plugin, because the...

Did a bit of reading seems using MEF is the best way to go, it's a part of the .net 4.0 framework. Managed Extensibility Framework (MEF) http://msdn.microsoft.com/en-us/library/dd460648%28v=vs.110%29.aspx Created Fork https://github.com/scottc/xdcc-grabscher-MEF-Plugins...

Made my first attempt https://github.com/scottc/xdcc-grabscher-MEF-Plugins/commit/47f5ad74c0065167e9c6e26cbfa9f00d67652bfa, it compiles and runs, but it's not detecting the plugins inside the plugins folder for some reason.

Found the problem, plugins are loading correctly. When using the metadata, you must fill out all the attributes mentioned on the interface, otherwise MEF will not import it. ``` C#...

I believe there are other attributes for that purpose, like the configuration and validation ones. http://msdn.microsoft.com/en-us/library/system.configuration.configurationpropertyattribute%28v=vs.110%29.aspx http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.validationattribute%28v=vs.110%29.aspx ``` C# [ConfigurationProperty("url", DefaultValue = "http://www.contoso.com", IsRequired = true)] [RegexStringValidator(@"\w+:\/\/[\w.]+\S*")] public string Url...