This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public class AvaCloudUserClientFactory | |
| { | |
| public AvaCloudUserClientFactory(string userIdentifier, | |
| string userPassword, | |
| string avacloudBaseUrl = "https://avacloud-api.dangl-it.com", | |
| Func<ITokenStorage> tokenStorageFactory = null) | |
| { | |
| _serviceProvider = BuildAvaCloudServiceProvider(userIdentifier, | |
| userPassword, | |
| avacloudBaseUrl, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | services.AddSwaggerDocument(c => | |
| { | |
| c.PostProcess = (openApiDocument) => | |
| { | |
| var operation = openApiDocument.Paths.Single(p => p.Key.StartsWith("/conversion/gaeb/ava")); | |
| var operationParameters = operation.Value.Values.Single().Parameters; | |
| var sortedParameters = SortParameters(operationParameters).ToList(); | |
| operationParameters.Clear(); | |
| foreach (var parameter in sortedParameters) | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
| <title>Hello World!</title> | |
| </head> | |
| <body> | |
| <h1>Hello World!</h1> | |
| We are using Node.js <span id="node-version"></span>, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Target BuildElectronApp => _ => _ | |
| .DependsOn(Clean) | |
| .DependsOn(GenerateVersion) | |
| .Requires(() => CodeSigningCertificateName != null) | |
| .Executes(() => | |
| { | |
| // To ensure the tool is always up to date | |
| DotNet("tool update ElectronNET.CLI -g"); | |
| BuildElectronAppInternal( | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | FROM node:14 AS node | |
| FROM node AS headless | |
| RUN apt-get update && \ | |
| apt-get install -y xvfb \ | |
| libgbm1 \ | |
| libxss1 \ | |
| libnss3 \ | |
| libgtk-3-dev \ | |
| libasound2-dev \ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | private async Task CallWebhookToUpdateDockerImageAsync() | |
| { | |
| var webhookUri = "https://username:[email protected]/docker/hook"; | |
| var uri = new Uri(webhookUri); | |
| var httpRequest = new HttpRequestMessage(HttpMethod.Post, webhookUri); | |
| // The webhooks for Azure App Service contain username & password, it's required for authentication | |
| // in the webhook request | |
| if (!string.IsNullOrWhiteSpace(uri.UserInfo)) | |
| { | |
| var encodedStr = Convert.ToBase64String(Encoding.ASCII.GetBytes(uri.UserInfo)); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using Nuke.Common; | |
| using Nuke.Common.Execution; | |
| using Nuke.Common.Tools.GitVersion; | |
| using static Nuke.Common.IO.FileSystemTasks; | |
| using static Nuke.Common.Tools.Npm.NpmTasks; | |
| using static Nuke.Common.ChangeLog.ChangelogTasks; | |
| using static Nuke.Common.IO.TextTasks; | |
| using static Nuke.GitHub.GitHubTasks; | |
| using Nuke.GitHub; | |
| using Nuke.Common.Git; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using Xunit; | |
| // This is required to have the IAssemblyFixture from the Xunit.Extensions.Ordering Package available | |
| [assembly: TestFramework("Xunit.Extensions.Ordering.TestFramework", "Xunit.Extensions.Ordering")] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | pipeline { | |
| triggers { | |
| cron('0 0 1 * *') | |
| } | |
| agent { | |
| node { | |
| label 'master' | |
| customWorkspace 'workspace/JenkinsBackup' | |
| } | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using OpenQA.Selenium; | |
| using OpenQA.Selenium.Chrome; | |
| using OpenQA.Selenium.Remote; | |
| using System; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Reflection; | |
| using System.Threading.Tasks; | |
| using Xunit; | 
NewerOlder