CreateRenewalRequestCertificate
This function is designed for license renewal process by e-mail. It creates renewal request certificate (into filePathName) which should be sent into our automatic e-mail processing address. The service sends renewal response certificate in reply

Syntax
public static ClientRenewalRequestResponseCode CreateRenewalRequestCertificate(string filePathName, string renewalCode)

Parameters
string filePathName - file name where request certificate will be stored
string renewalCode - renewal code for renewal process
string licenseCode - license code which should be renewed

Return value
Returns the status of operation via ClientRenewalRequestResponseCode enum.

Requirements
File: ItpLibraryNetWrapper.cs
Namespace: ItpLibraryNetClient;

Example
private void btnSaveCertificate_Click(object sender, EventArgs e)
{
    string licenseCode = tbLicenseCode.Text.Trim();
    if (string.IsNullOrEmpty(licenseCode))
    {
        MessageBox.Show(@"License code is not available", @"License is empty");
        return;
    }
 
    string renewalCode = tbRenewalCode.Text.Trim();
    if (string.IsNullOrEmpty(renewalCode))
    {
        MessageBox.Show(@"Please specify a renewal code", @"Renewal code is empty");
        return;
    }
 
    using(SaveFileDialog saveFileDialog = FileDialogs.CreateSaveFileDialog(_certificateName))
    {
        if (saveFileDialog.ShowDialog() != DialogResult.OK)
            return;
 
        ClientRenewalRequestResponseCode responseCode = ItpLibraryNetWrapper.CreateRenewalRequestCertificate(saveFileDialog.FileName, renewalCode, licenseCode);
        MessageBox.Show(responseCode.ToString(), Text);
    }
}
Copyright 2006 - 2024 by IntelliProtector - Software Protection and Licensing Services