コード例 #1
0
 public PlatformInvoker(DeploymentPoolArgs args,
                        DeploymentServiceClient deploymentServiceClient,
                        SnapshotServiceClient snapshotServiceClient)
 {
     deploymentNamePrefix         = args.DeploymentNamePrefix + HumanNamer.GetRandomName(2, "_") + "_";
     launchConfigFilePath         = args.LaunchConfigFilePath;
     snapshotFilePath             = args.SnapshotFilePath;
     assemblyName                 = args.AssemblyName;
     spatialProject               = args.SpatialProject;
     matchType                    = args.MatchType;
     this.deploymentServiceClient = deploymentServiceClient;
     this.snapshotServiceClient   = snapshotServiceClient;
 }
コード例 #2
0
 public DeploymentPool(
     DeploymentPoolArgs args,
     DeploymentServiceClient deploymentServiceClient,
     PlatformInvoker platformInvoker,
     CancellationToken token)
 {
     cancelToken             = token;
     matchType               = args.MatchType;
     spatialProject          = args.SpatialProject;
     minimumReadyDeployments = args.MinimumReadyDeployments;
     cleanup = args.Cleanup;
     this.platformInvoker         = platformInvoker;
     this.deploymentServiceClient = deploymentServiceClient;
 }
コード例 #3
0
 public PlatformInvoker(DeploymentPoolArgs args,
                        DeploymentServiceClient deploymentServiceClient,
                        SnapshotServiceClient snapshotServiceClient,
                        IAnalyticsSender analytics = null)
 {
     deploymentNamePrefix         = args.DeploymentNamePrefix + HumanNamer.GetRandomName(2, "_") + "_";
     launchConfigFilePath         = args.LaunchConfigFilePath;
     snapshotFilePath             = args.SnapshotFilePath;
     assemblyName                 = args.AssemblyName;
     spatialProject               = args.SpatialProject;
     matchType                    = args.MatchType;
     this.deploymentServiceClient = deploymentServiceClient;
     this.snapshotServiceClient   = snapshotServiceClient;
     _analytics                   = (analytics ?? new NullAnalyticsSender()).WithEventClass("deployment");
 }
コード例 #4
0
 public DeploymentPool(
     DeploymentPoolArgs args,
     DeploymentServiceClient deploymentServiceClient,
     PlatformInvoker platformInvoker,
     CancellationToken token,
     IAnalyticsSender analytics = null)
 {
     cancelToken             = token;
     matchType               = args.MatchType;
     spatialProject          = args.SpatialProject;
     minimumReadyDeployments = args.MinimumReadyDeployments;
     cleanup = args.Cleanup;
     this.platformInvoker         = platformInvoker;
     this.deploymentServiceClient = deploymentServiceClient;
     _analytics = (analytics ?? new NullAnalyticsSender()).WithEventClass("deployment");
 }