Ejemplo n.º 1
0
 public static ServiceDeployer GetService(int replicaSetSize)
 {
     return(new ServiceDeployer()
     {
         CodePackageFiles = new List <string>(SanityTest.GetAllCodePackageBinaries()),
         InstanceCount = 0,
         ServiceTypeImplementation = typeof(StatefulSanityTest.MyApplication),
         ServiceTypeName = "SanityTestStatefulService",
         MinReplicaSetSize = replicaSetSize,
         TargetReplicaSetSize = replicaSetSize
     });
 }
Ejemplo n.º 2
0
 public static ServiceDeployer GetService(int instanceCount)
 {
     return(new ServiceDeployer()
     {
         CodePackageFiles = new List <string>(SanityTest.GetAllCodePackageBinaries()),
         InstanceCount = instanceCount,
         ServiceTypeImplementation = typeof(StatelessSanityTest.MyApplication),
         ServiceTypeName = "SanityTestStatelessService",
         MinReplicaSetSize = 2, // these need to be 2 for manifest etc to generate correctly (TODO investigate)
         TargetReplicaSetSize = 2
     });
 }