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 SLMTransformAttribute which is used as follows:
public class MyCode
{
[SLMTransform( "FeatureA" )]
public void WillBeTiedToFeatureA()
{
}
[SLMTransform]
public void WillBeProtected()
{
}
}
See How To: Declaratively mark methods to be protected or licensed in your code for further details regarding declarative protection.