/// <summary>initialize database,httpClient,request queue and session</summary> private void Start() { _basicData = new BasicData(); _probaLogger = GetComponent <ProbaLogger>(); _probaLogger.SetProperties(SaveInFile, ShowInConsole); _probaHttpClient = new ProbaHttpClient(_probaLogger, SecretKey, PublicKey); SendFirstRecordFromDB(); }
internal ProbaHttpClient(ProbaLogger logger, string secretKey, string publicKey) { Logger = logger; SecretKey = secretKey; PublicKey = publicKey; Client = new HttpClient(); HmacService = new HmacService(); CancellationTokenSource = new CancellationTokenSource(); }