Exemple #1
0
 public LicenseContainer Request(LicenseRequest request)
 {
     if (request is LicenseRequestMock)
     {
         var req = request as LicenseRequestMock;
         var lic = new LicenseMock();
         lic.SetHarwareId(req.HardwareId);
         lic.SetProductId(req.ProductId);
         return(Sign(lic, Const.FULL_KEY));
     }
     throw new NotSupportedException($"License request of type '{request.GetType().Name}' is not supported by this provider");
 }