Is there a way I can indicate which methods I wish to protect via my code so I dont have to regenerate my .SLMCfg file every time my methods names change (e.g., as a result of obfuscation or refactoring)?
SLPS Code Protector provides a FeatureAttribute which is used as follows:
public class MyCode
{
[Feature( "FeatureA" )]
public void WillBeTiedToFeatureA()
{
}
[Feature]
public void WillRequireAnyFormOfValidLicense()
{
}
[Protect]
public void WillBeProtectedButNotRequireALicense()
{
}
}
See How To: Declaratively mark methods to be protected or licensed in your code for further details regarding declarative protection.