コード例 #1
0
 internal ChaosTestScenario(FabricClient fabricClient, string testScenarioName, ChaosTestScenarioParameters chaosScenarioParameters)
     : base(fabricClient, chaosScenarioParameters)
 {
     this.chaosScenarioParameters = chaosScenarioParameters;
     this.actionTranslator        = new ActionTranslator(this.ReportProgress);
     this.ScenarioInstanceName    = testScenarioName;
     this.random = new Random((int)DateTime.Now.Ticks);
     this.rootActionGenerator = new RootActionGenerator(chaosScenarioParameters.ActionGeneratorParameters, this.random);
 }
コード例 #2
0
 /// <summary>
 /// Constructor for the ChaosTestScenario.
 /// </summary>
 /// <param name="fabricClient">FabricClient object which will be used to connect to the cluster and induce the faults.</param>
 /// <param name="chaosScenarioParameters">ChaosTestScenarioParameters which define the configuration for the chaos test.</param>
 public ChaosTestScenario(FabricClient fabricClient, ChaosTestScenarioParameters chaosScenarioParameters)
     : this(fabricClient, TraceType + DateTime.Now.ToString(CultureInfo.CurrentCulture.DateTimeFormat.ShortTimePattern), chaosScenarioParameters)
 {
 }