Skip to content

Commit b68ffcb

Browse files
authored
Update Program.cs
1 parent 89f91f1 commit b68ffcb

File tree

1 file changed

+4
-13
lines changed
  • samples/Performance/ReadRateFirstSettings

1 file changed

+4
-13
lines changed

samples/Performance/ReadRateFirstSettings/Program.cs

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,10 @@ static void Main(string[] args)
9797
{
9898
try
9999
{
100-
// Initialize license
101-
/*
102-
// By setting organization ID as "200001", a free public trial license will be used for license verification.
103-
// Note that network connection is required for this license to work.
104-
//
105-
// When using your own license, locate the following line and specify your Organization ID.
106-
// organizationID = "200001";
107-
//
108-
// 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
109-
*/
110-
DMDLSConnectionParameters connectionInfo = BarcodeReader.InitDLSConnectionParameters();
111-
connectionInfo.OrganizationID = "200001";
112-
EnumErrorCode errorCode = BarcodeReader.InitLicenseFromDLS(connectionInfo, out string errorMsg);
100+
// 1.Initialize license.
101+
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
102+
// 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
103+
EnumErrorCode errorCode = BarcodeReader.InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", out string errorMsg);
113104
if (errorCode != EnumErrorCode.DBR_SUCCESS)
114105
{
115106
Console.WriteLine(errorMsg);

0 commit comments

Comments
 (0)