Пример #1
0
        // Get latest active application info.
        private async Task <ClusterStateSnapshot> GetClusterStateSnapshotAsync(CancellationToken token)
        {
            Log.WriteNoise(TraceType, "GetClusterStateSnapshotAction(): Getting latest application and node information.");
            GetClusterStateSnapshotAction getClusterStateSnapshotAction = new GetClusterStateSnapshotAction(0.05, false, int.MaxValue, null);

            await this.TestContext.ActionExecutor.RunAsync(getClusterStateSnapshotAction, token);

            return(getClusterStateSnapshotAction.Result);
        }
Пример #2
0
        // Get latest active application info.
        private async Task <ClusterStateSnapshot> GetClusterStateSnapshotAsync(CancellationToken token)
        {
            GetClusterStateSnapshotAction getClusterStateSnapshotAction = new GetClusterStateSnapshotAction(
                this.chaosSnapshotTelemetrySamplingProbability,
                this.shouldFaultSystemService,
                this.maximumNumberOfRetriesInGetClusterSnapshotAction,
                this.ChaosParameters.ChaosTargetFilter);

            await this.TestContext.ActionExecutor.RunAsync(getClusterStateSnapshotAction, token).ConfigureAwait(false);

            return(getClusterStateSnapshotAction.Result);
        }