Пример #1
0
 /// <summary>Occurs when a manual's action should be saved so it may be resumed later.</summary>
 /// <param name="sender">The sender object.</param>
 /// <param name="e">Event arguments</param>
 /// <remarks>
 /// <para>This method handles the <see cref="LicensingGui.ManualActionSaveRequested"/> event.</para>
 /// <note type="caution">
 /// <para>
 /// TODO: IMPORTANT: Either Implement your own handlers for loading and saving a manual request state/session, or update
 /// the ManualActionIV and ManualActionKey properties (in the LicenseConfiguration class) with randomized data which is
 /// unique for each of your applications. The implementations provided are simple and only designed to show you the
 /// functionality which you can achieve by saving and restoring manual action sessions.  However, it is VERY IMPORTANT
 /// that you take measures to hide and protect the saved request data/file so users may not easily restore and replay
 /// old responses (known as a replay attack).
 /// </para>
 /// </note>
 /// </remarks>
 private void ManualActionSaveRequested(object sender, ManualActionSaveRequestedEventArgs e)
 {
     SampleLicense.SaveManualActionSessionState(e.Contents);
 }