Esempio n. 1
0
        public async Task <PerformanceRunOptions> CreateAsync()
        {
            var options = new PerformanceRunOptions();

            var devOpsClient   = new DevOpsClient(_log);
            var artifactResult = await devOpsClient.GetArtifacts(Branch, options.DevOpsAccessToken);

            options.ExtensionUrl = artifactResult.ExtensionUrl;
            options.AppUrl       = artifactResult.AppUrl;

            return(options);
        }
        public async Task <PerformanceRunOptions> CreateAsync()
        {
            var options = new PerformanceRunOptions();

            using (var appVeyorClient = new AppVeyorClient(_log))
            {
                // Get latest private extension url from appvayor build
                string lastSuccessfulVersion = await appVeyorClient.GetLastSuccessfulBuildVersionAsync(Branch, options.FunctionsHostSlug);

                options.ExtensionUrl = await appVeyorClient.GetArtifactUrlAsync(lastSuccessfulVersion, options.FunctionsHostSlug, string.Empty, "inproc");

                options.AppUrl = await appVeyorClient.GetArtifactUrlAsync(lastSuccessfulVersion, options.FunctionsHostSlug, string.Empty, "WebJobs.Script.Performance.App");
            }

            return(options);
        }