Skip to content
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

What are valid options for ProductFeatures #26

Open
emilaz opened this issue Feb 1, 2023 · 1 comment
Open

What are valid options for ProductFeatures #26

emilaz opened this issue Feb 1, 2023 · 1 comment

Comments

@emilaz
Copy link

emilaz commented Feb 1, 2023

I was wondering where I can see what the .WithProductFeatures(Dictionary<string, string> productFeatures) function actually does and where I could see which options I could set there?

@AntiGuideAkquinet
Copy link
Contributor

The function works with any string as it is only used to build up an XML file.

When using a setup like the one provided in the README:

var license = License.New()  
    .WithProductFeatures(new Dictionary<string, string>  
    {  
        {"Sales Module", "yes"},  
        {"Purchase Module", "yes"},  
        {"Maximum Transactions", "10000"}  
    })  
    .CreateAndSignWithPrivateKey(privateKey, passPhrase);

The output will look like this:

<License>
  <ProductFeatures>
    <Feature name="Sales Module">yes</Feature>
    <Feature name="Purchase Module">yes</Feature>
    <Feature name="Maximum Transactions">10000</Feature>
  </ProductFeatures>
  <Signature>MEYCIQCjUXX6ZS4fEItOIS1rmaeex9/INfKQnvpDLmmdRiOR3AIhALkmUK8p9y7BxqElmIMDrznBZOcp+e3ypNRBF9g3xyif</Signature>
</License>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants