Exemplo n.º 1
0
 private RsapiDao(IServicesMgr servicesManager, int workspaceId, ExecutionIdentity executionIdentity,
                  InvokeWithRetryService invokeWithRetryService,
                  int batchSize = DefaultBatchSize)
     : this(new RsapiProvider(servicesManager, executionIdentity, invokeWithRetryService, workspaceId, batchSize))
 {
     this.invokeWithRetryService = invokeWithRetryService;
 }
Exemplo n.º 2
0
 public RsapiProvider(IServicesMgr servicesManager, ExecutionIdentity executionIdentity, InvokeWithRetryService invokeWithRetryService,
                      int workspaceId, int batchSize)
 {
     this.servicesManager          = servicesManager;
     this.workspaceId              = workspaceId;
     this.CurrentExecutionIdentity = executionIdentity;
     this.invokeWithRetryService   = invokeWithRetryService;
     this.batchSize = batchSize;
 }
Exemplo n.º 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);
            }
        }