private async Task ExecuteAsync(PowershellLogger logger, string clusterEndPoint, string thumbPrint, string path) { try { var client = await new ServiceFabricClientBuilder().ConnectAsync(clusterEndPoint, thumbPrint); var apps = new ServiceFabricSolution(AppsHash, path); await client.DeployServiceFabricSolution(apps, UseSymlink.ToBool()); } catch (Exception e) { logger.LogError(e.Message, e); } logger.Stop(); }
private async System.Threading.Tasks.Task ExecuteAsync(string clusterEndPoint, string thumbPrint) { var client = await new ServiceFabricClientBuilder().ConnectAsync(clusterEndPoint, thumbPrint); var apps = new ServiceFabricSolution(); apps.Applications.Add(new ServiceFabricApplicationSpec { Name = Instances.First().ItemSpec, ParameterFilePath = Path.Combine(Path.GetDirectoryName(ProjectPath), ParametersFile), Parameters = new Dictionary <string, string> { }, PackagePath = Path.Combine(Path.GetDirectoryName(ProjectPath), PackageLocation) }); await client.DeployServiceFabricSolution(apps, false); }