public BarCode(string curPath) {

            path = curPath;

            Aspose.BarCode.License lic = new Aspose.BarCode.License();
            lic.SetLicense(@"c:\tempfiles\Aspose.Total.lic");
        }
        public BarCode(string curPath)
        {
            path = curPath;

            Aspose.BarCode.License lic = new Aspose.BarCode.License();
            lic.SetLicense(@"c:\tempfiles\Aspose.Total.lic");
        }
        public void Start()
        {
            Aspose.Pdf.License pdflicense = new Aspose.Pdf.License();
            pdflicense.SetLicense(aposePDFLicense);
            pdflicense.Embedded = true;

            Aspose.BarCode.License barCodeLicense = new Aspose.BarCode.License();
            barCodeLicense.SetLicense(aposeBarCodeLicense);
            bool ff = barCodeLicense.IsLicensed;

            _timer = new System.Timers.Timer(30000);
            _timer.Elapsed += new ElapsedEventHandler(this.ServiceTimer_Tick);

            _timer.Enabled = true;
            _timer.Start();
            Log("Service Started");
        }
        static void ApplyLicenses()
        {
            try
            {
                Aspose.Words.License license_Words = new Aspose.Words.License();
                license_Words.SetLicense("Aspose.Total.Product.Family.lic");
            }
            catch (Exception)
            {
                Console.WriteLine("Aspsoe.Words' license not applied");
            }

            try
            {
                Aspose.BarCode.License license_BarCode = new Aspose.BarCode.License();
                license_BarCode.SetLicense("Aspose.Total.Product.Family.lic");
            }
            catch (Exception)
            {
                Console.WriteLine("Aspsoe.BarCode's license not applied");
            }
        }