Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 24, 2022 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/3d2be4bc715eb35b1cae37afed1bfd17 to your computer and use it in GitHub Desktop.
Save lgolubyev/3d2be4bc715eb35b1cae37afed1bfd17 to your computer and use it in GitHub Desktop.
public class ProtectionConfig
{
public string Path { get; set; }
public string ConfigurationPath { get; set; }
public string OutPutPath { get; set; }
public CancellationToken cancellationToken { get; set; }
}
var config = new ProtectionConfig
{
Path = "./app.exe",
ConfigurationPath = "./shield.config.json",
OutPutPath = "./app_protected.exe",
CancellationToken = source.Token;
};
public void ProtectApplication(ProtectionConfig config)
{
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment