AdjustSdk.Pcl.AttributionHandler.GetAttributionInternal C# (CSharp) Method

GetAttributionInternal() private method

private GetAttributionInternal ( ) : void
return void
        private void GetAttributionInternal()
        {
            if (!HasDelegate) { return; }

            if (Paused)
            {
                Logger.Debug("Attribution handler is paused");
                return;
            }

            Logger.Verbose("{0}", AttributionPackage.GetExtendedString());

            HttpResponseMessage httpResponseMessage;
            try
            {
                var httpClient = GetHttpClient(AttributionPackage);
                var attribution = GetAttributionUrl();
                httpResponseMessage = httpClient.GetAsync(attribution).Result;
            }
            catch (Exception ex)
            {
                Logger.Error("Failed to get attribution ({0})", Util.ExtractExceptionMessage(ex));
                return;
            }

            var jsonDic = Util.ParseJsonResponse(httpResponseMessage);

            CheckAttributionInternal(jsonDic);
        }