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.
Inheritance: StatefulService
        public static void RegisterComponents(HttpConfiguration config, ChaosService service)
        {
            UnityContainer container = new UnityContainer();

            container.RegisterType <DefaultController>(new InjectionConstructor(service));
            config.DependencyResolver = new UnityDependencyResolver(container);
        }
 public Startup(ChaosService service)
 {
     this.service = service;
 }
 public static void RegisterComponents(HttpConfiguration config, ChaosService service)
 {
     UnityContainer container = new UnityContainer();
     container.RegisterType<DefaultController>(new InjectionConstructor(service));
     config.DependencyResolver = new UnityDependencyResolver(container);
 }
Example #4
0
 public Startup(ChaosService service)
 {
     this.service = service;
 }