public RsapiDao(IServicesMgr servicesManager, int workspaceId, ExecutionIdentity executionIdentity, InvokeWithRetrySettings invokeWithRetrySettings = null, int batchSize = DefaultBatchSize) : this(servicesManager, workspaceId, executionIdentity, GetInvokeWithRetryService(invokeWithRetrySettings), batchSize) { }
private static InvokeWithRetryService GetInvokeWithRetryService(InvokeWithRetrySettings invokeWithRetrySettings) { if (invokeWithRetrySettings == null) { invokeWithRetrySettings = new InvokeWithRetrySettings(SharedConstants.retryAttempts, SharedConstants.sleepTimeInMiliseconds); } return(new InvokeWithRetryService(invokeWithRetrySettings)); }
public RsapiDao(IHelper helper, int workspaceId, ExecutionIdentity executionIdentity, InvokeWithRetrySettings invokeWithRetrySettings = null) { this.helper = helper; this.workspaceId = workspaceId; this.CurrentExecutionIdentity = executionIdentity; if (invokeWithRetrySettings == null) { InvokeWithRetrySettings defaultSettings = new InvokeWithRetrySettings(SharedConstants.retryAttempts, SharedConstants.sleepTimeInMiliseconds); this.invokeWithRetryService = new InvokeWithRetryService(defaultSettings); } else { this.invokeWithRetryService = new InvokeWithRetryService(invokeWithRetrySettings); } }
public TestObjectHelper(IServicesMgr servicesManager, int workspaceId, int numberOfRetrySettings) { _servicesManager = servicesManager; _workspaceId = workspaceId; _retrySettings = new InvokeWithRetrySettings(numberOfRetrySettings, 1000); }
public RsapiDao(IHelper helper, int workspaceId, InvokeWithRetrySettings invokeWithRetrySettings = null) : this(helper, workspaceId, ExecutionIdentity.System, invokeWithRetrySettings) { }