示例#1
0
        public RsapiDao(IServicesMgr servicesManager, int workspaceId, ExecutionIdentity executionIdentity,
                        InvokeWithRetrySettings invokeWithRetrySettings = null,
                        int batchSize = DefaultBatchSize)
            : this(servicesManager, workspaceId, executionIdentity, GetInvokeWithRetryService(invokeWithRetrySettings), batchSize)

        {
        }
示例#2
0
        private static InvokeWithRetryService GetInvokeWithRetryService(InvokeWithRetrySettings invokeWithRetrySettings)
        {
            if (invokeWithRetrySettings == null)
            {
                invokeWithRetrySettings = new InvokeWithRetrySettings(SharedConstants.retryAttempts, SharedConstants.sleepTimeInMiliseconds);
            }

            return(new InvokeWithRetryService(invokeWithRetrySettings));
        }
示例#3
0
        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);
            }
        }
示例#4
0
 public TestObjectHelper(IServicesMgr servicesManager, int workspaceId, int numberOfRetrySettings)
 {
     _servicesManager = servicesManager;
     _workspaceId     = workspaceId;
     _retrySettings   = new InvokeWithRetrySettings(numberOfRetrySettings, 1000);
 }
示例#5
0
 public RsapiDao(IHelper helper, int workspaceId, InvokeWithRetrySettings invokeWithRetrySettings = null)
     : this(helper, workspaceId, ExecutionIdentity.System, invokeWithRetrySettings)
 {
 }