Пример #1
0
 public RequestInitializeInfrastructure(int lowerBoundaryReadyReplicas = 2, int replicaFailureThreshold = 6, int replicaDelaySeconds = 30, int numberOfReplicas = 3)
 {
     LowerBoundaryReadyReplicas = new LowerBoundaryReadyReplicas(lowerBoundaryReadyReplicas);
     ReplicaFailureThreshold    = new ReplicaFailureThreshold(replicaFailureThreshold);
     ReplicaDelaySeconds        = new ReplicaDelaySeconds(replicaDelaySeconds);
     RabbitNumberOfReplicas     = new RabbitNumberOfReplicas(numberOfReplicas);
 }
 public InitializeInfrastructureTaskRequestEvent(Id taskId, LowerBoundaryReadyReplicas lowerBoundaryReadyReplicas, ReplicaFailureThreshold replicaFailureThreshold, ReplicaDelaySeconds replicaDelaySeconds, RabbitNumberOfReplicas rabbitNumberOfReplicas)
 {
     TaskId = taskId;
     LowerBoundaryReadyReplicas = lowerBoundaryReadyReplicas;
     ReplicaFailureThreshold    = replicaFailureThreshold;
     ReplicaDelaySeconds        = replicaDelaySeconds;
     RabbitNumberOfReplicas     = rabbitNumberOfReplicas;
 }
 public RabbitDeploymentManagerConfiguration(Id taskId, LowerBoundaryReadyReplicas lowerBoundaryReadyReplicas, ReplicaFailureThreshold replicaFailureThreshold, ReplicaDelaySeconds replicaDelaySeconds, RabbitNumberOfReplicas rabbitNumberOfReplicas, Func <Id, ILogHandler, Task> successCallback, Func <Id, ILogHandler, Task> failureCallback, Func <Id, ILogHandler, Task> updateCallback)
 {
     TaskId                      = taskId;
     SuccessCallback             = successCallback;
     FailureCallback             = failureCallback;
     UpdateCallback              = updateCallback;
     _lowerBoundaryReadyReplicas = lowerBoundaryReadyReplicas;
     _replicaFailureThreshold    = replicaFailureThreshold;
     _replicaDelaySeconds        = replicaDelaySeconds;
     _rabbitNumberOfReplicas     = rabbitNumberOfReplicas;
 }