C# 클래스 ChaosTest.ChaosService.ChaosService

This stateful service keeps inducing failovers and faults - chosen probabilistically - to the cluster, using ChaosTestScenario from Microsoft.ServiceFabric.Testability under the hood, hiding the fact that ChaosTestScenario runs in unit of iteration, giving the impression that the fault inducing is perennial.
상속: StatefulService
파일 보기 프로젝트 열기: Azure-Samples/service-fabric-dotnet-testing-chaos-service 1 사용 예제들

공개 메소드들

메소드 설명
ChaosService ( StatefulServiceContext context ) : System
GetEventsAsync ( ) : Task
StartAsync ( ) : Task

Starts the test.

StopAsync ( ) : Task

보호된 메소드들

메소드 설명
CreateServiceReplicaListeners ( ) : IEnumerable
RunAsync ( CancellationToken runAsyncCancellationToken ) : Task

비공개 메소드들

메소드 설명
StoreEventAsync ( string eventString ) : Task

This method saves the description (eventString) and timestamp of the recentmost induced fault as a ChaosEntry in a Reliable Dictionary

TestScenarioProgressChanged ( object sender, ProgressChangedEventArgs e ) : void

This is the event-handler for the events coming into from ChaosTestScenario

메소드 상세

ChaosService() 공개 메소드

public ChaosService ( StatefulServiceContext context ) : System
context StatefulServiceContext
리턴 System

CreateServiceReplicaListeners() 보호된 메소드

protected CreateServiceReplicaListeners ( ) : IEnumerable
리턴 IEnumerable

GetEventsAsync() 공개 메소드

public GetEventsAsync ( ) : Task
리턴 Task

RunAsync() 보호된 메소드

protected RunAsync ( CancellationToken runAsyncCancellationToken ) : Task
runAsyncCancellationToken System.Threading.CancellationToken
리턴 Task

StartAsync() 공개 메소드

Starts the test.
public StartAsync ( ) : Task
리턴 Task

StopAsync() 공개 메소드

public StopAsync ( ) : Task
리턴 Task