Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Flavio Spezi 128 posts 310 karma points
    Mar 26, 2016 @ 15:05
    Flavio Spezi
    0

    New PropertyEditor: DotNet Class Picker

    I suggest to add a new PropertyEditor that allow web-editor to select a .NET Class that implement a specified interface, like as DotNet datatype already do with IDotNetDataSource.

    When user define a new DotNet Class Picker DataType, he can select a interface inside some Assembly.

    Then, when web-editor edit a document with this datatype, he can select one (or more?) Class that implement selected interface.

  • Hendy Racher 859 posts 3821 karma points MVP admin c-trib
    Mar 31, 2016 @ 09:47
    Hendy Racher
    0

    Hi Flavio,

    Thanks for the suggestion, can you give an example of how this could be used ?

  • Flavio Spezi 128 posts 310 karma points
    Mar 31, 2016 @ 10:10
    Flavio Spezi
    0

    For example, I am developing a webProject that will download data from external resources, in JSON, XML, RSS formats.

    I will use a Content Node to configure any source of theese. The Node will have:

    • Resource URL: location of resource
    • Parser: Parser class that will download, normalize, then save data to local DB.

    A Parser class is a C# class that implement ISourceParser C# interface.

    Addon

    For non-technical users, list of class would be converted to a "user-like" name, using an apporpiate Attribute:

    [nuPickers.DotNetClassPicker.ClassName("XML Format")]
    public class MyXmlParser : ISourceParser {
        ....
    }
    
Please Sign in or register to post replies

Write your reply to:

Draft