public abstract webResult executeRequest(webLoaderSettings settings, executionSyncMode __syncMode, webRequestEvent __onExecutedOk, webRequestEvent __onError, webRequestEvent __onRetry);
/// <summary> /// Izvrsavanje /// </summary> /// <param name="settings">Podesavanja loadera</param> /// <param name="__syncMode">Tip izvrsavanja</param> /// <param name="__onExecutedOk">kada je executedOk</param> /// <param name="__onError">za sve vrste gresaka</param> /// <param name="__onRetry">kada se desi retry</param> public override webResult executeRequest(webLoaderSettings settings, executionSyncMode __syncMode, webRequestEvent __onExecutedOk, webRequestEvent __onError, webRequestEvent __onRetry) { return(_executeRequest(settings, __syncMode, __onExecutedOk, __onError, __onRetry)); }
/// <summary> /// Primenjuje podesavanja i postavlja event handlere /// </summary> /// <param name="settings">Podesavanja koja treba da primenu</param> /// <param name="__onExecutedOk">Poziva se nakon finalizacije</param> /// <param name="__onError">Poziva se za timeout ili neku drugu gresku</param> /// <param name="__onRetry">Poziva se ako dodje do ponavljanja requesta</param> public void deploySettings(webLoaderSettings __settings, webRequestEvent __onExecutedOk, webRequestEvent __onError, webRequestEvent __onRetry) { status = webRequestEventType.scheduled; settings = __settings; result = null; // if (settings.action != webRequestActionType.None) action = settings.action; // if (settings.requestType != webRequestType.unknown) requestType = settings.requestType; // imbTypologyExtensions.setObjectBySource(this, settings, new string[]{"url", "action", "requestType"}); //timeCounter. //retryWaitCounter.setup(settings.retryWaitDefault, true); //retryCounter.setup(settings.retryLimitDefault, true); //loadCooloffCounter.setup(settings.loadCoolOffDefault, true); //contentCriteriaCheckDelayCounter.setup(settings.contentCriteriaCheckDelayDefault, true); onRetryCalled_addHandler(__onRetry); onExecutionTimeout_addHandler(__onError); onExecutionError_addHandler(__onError); onExecutionDone_addHandler(__onExecutedOk); if (String.IsNullOrEmpty(url)) { logSystem.log("Url is null/empty!!!", logType.Notification); } else { Uri urlObj = null; if (Uri.TryCreate(url, UriKind.Absolute, out urlObj)) { urlObject = urlObj; } else { } } }