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; }
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"); }