protected HttpRequestScheduledTaskBase(int executionTimeoutInMilliseconds) { _id = Guid.NewGuid(); Timeout = executionTimeoutInMilliseconds; Deferral = new ForegroundTaskDeferral(); CancellationTokenSource = new CancellationTokenSource(); }
public SecuredHttpServiceGate(SessionApiService sessionApiService, HttpServiceGateConfig config, IMembershipService membershipService) { var httpRequestsScheduler = new HttpRequestsScheduler(config); _client = new ModifiedHttpClient(httpRequestsScheduler); _sessionApiService = sessionApiService; _membershipService = membershipService; _sessionRetrievalDeferral = new ForegroundTaskDeferral(); }
private ForegroundTaskDeferral CreateSessionRetrievalDeferral() { _sessionRetrievalDeferral = new ForegroundTaskDeferral(); return(_sessionRetrievalDeferral); }