View SwaggerExtensions.cs
This file contains 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) | |
{ |
View index.html
This file contains 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>, |
View BuildElectron.cs
This file contains 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( |
View Dockerfile
This file contains 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 \ |
View DockerWebhook.cs
This file contains 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:password@app-name.scm.azurewebsites.net/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)); |
View Build.cs
This file contains 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; |
View AssemblyInfo.cs
This file contains 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")] |
View Jenkinsfile
This file contains 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' | |
} | |
} |
View E2eTestsBase.cs
This file contains 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; |
View first_approach.cs
This file contains 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
_requestUrl | |
.Subscribe(async url => | |
{ | |
var response = await httpClient.GetAsync(url); | |
// Update the list | |
}); |
NewerOlder