예제 #1
0
 /// <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();
 }
예제 #2
0
 internal ProbaHttpClient(ProbaLogger logger, string secretKey, string publicKey)
 {
     Logger                  = logger;
     SecretKey               = secretKey;
     PublicKey               = publicKey;
     Client                  = new HttpClient();
     HmacService             = new HmacService();
     CancellationTokenSource = new CancellationTokenSource();
 }