Skip to content

Commit dd2faf9

Browse files
authored
Update Program.cs
1 parent b6ca93c commit dd2faf9

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

samples/ImageDecoding/Program.cs

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,10 @@ static void Main(string[] args)
1414
{
1515
try
1616
{
17-
// Initialize license
18-
/*
19-
// By setting organization ID as "200001", a free public trial license will be used for license verification.
20-
// Note that network connection is required for this license to work.
21-
//
22-
// When using your own license, locate the following line and specify your Organization ID.
23-
// organizationID = "200001";
24-
//
25-
// If you don't have a license yet, you can request a trial from https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=samples&package=dotnet
26-
*/
27-
DMDLSConnectionParameters connectionInfo = BarcodeReader.InitDLSConnectionParameters();
28-
connectionInfo.OrganizationID = "200001";
29-
EnumErrorCode errorCode = BarcodeReader.InitLicenseFromDLS(connectionInfo, out string errorMsg);
17+
// 1.Initialize license.
18+
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
19+
// You can also request a 30-day trial license in the customer portal: https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=github&package=dotnet
20+
EnumErrorCode errorCode = BarcodeReader.InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", out string errorMsg);
3021
if (errorCode != EnumErrorCode.DBR_SUCCESS)
3122
{
3223
Console.WriteLine(errorMsg);

0 commit comments

Comments
 (0)