@if (!string.IsNullOrEmpty(@rawData))
{
@if (!string.IsNullOrEmpty(@keyGen))
{
}
@if (!string.IsNullOrEmpty(@keyGen))
{
Click to Copy Generated Key to Clipboard
}
}
Paste File Content Here
@errorMsg
@code {
private string rawData { get; set; } = "";
private string keyGen { get; set; } = "";
private string errorMsg { get; set; } = "";
private async Task GenerateKey()
{
// recupero dati..
if (!string.IsNullOrEmpty(rawData))
{
var cMDV = new Core.MachineDataValidator(rawData);
if (cMDV.hasValidData)
{
keyGen = cMDV.machineKeyHash;
errorMsg = "";
}
else
{
keyGen = "";
errorMsg = "Invalid Content Value!!!";
}
}
await Task.Delay(1);
}
}