Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

How Get Extension Configurer within Variable class?



  • In my custom extension I can get the global configuration from an action and all editors as follows: this.GetExtensionConfigurer() as ArtifactoryConfigurer

    How do I do this from within an object created from VariableBase and its setter (DropDownList, IVariableSetter<ArtifactoryVersionVariable>)?

    Product: BuildMaster
    Version: 4.6.4



  • You can use:

    var configurer = Util.ExtensionConfigurers.GetExtensionConfigurer(this);
    

    from within the variable itself, or pass in an instance of the variable instead of this from the variable setter.


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation