Beispiel #1
0
        public ProgStats()
        {
            isStarted       = false;
            isStoping       = false;
            webService      = new WebService();
            cryptoService   = new CriptoService();
            ioHelper        = new IoHelper();
            featureClicks   = new int[10];
            userId          = GetUserId();
            countryCode     = RegionInfo.CurrentRegion.Name;
            threadGeoPlugin = new Thread(ReadGeoPlugin);
            threadSendStats = new Thread(SendProgStatsFromPreviousRuns);
            timer           = new Timer {
                AutoReset = true, Interval = 12 * 60 * 60 * 1000
            };
            timer.Elapsed += Timer_Elapsed;

            AppLicenseType      = LicenseType.Unknown;
            AppLicenseId        = userId;
            SendUsageStatistics = true;
        }
Beispiel #2
0
 public CriptoController(ILogger <CriptoController> logger, CriptoService criptoService)
 {
     _logger        = logger;
     _criptoService = criptoService;
 }