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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: default-subdomain | |
spec: | |
selector: | |
name: busybox | |
clusterIP: None | |
ports: | |
- name: foo # Actually, no port is needed. |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: default-subdomain | |
spec: | |
selector: | |
name: wiremock | |
clusterIP: None | |
ports: | |
- port: 80 |
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 Microsoft.Azure.EventHubs; | |
using Microsoft.Azure.EventHubs.Processor; | |
using System; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace EventHubExampleNew | |
{ | |
/// <summary> | |
/// Code based on: |
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
<?xml version="1.0" encoding="utf-8"?> | |
<ServiceManifest Name="WireMock_ContainerPkg" | |
Version="1.0.0" | |
xmlns="http://schemas.microsoft.com/2011/01/fabric" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<ServiceTypes> | |
<!-- This is the name of your ServiceType. | |
The UseImplicitHost attribute indicates this is a guest service. --> | |
<StatelessServiceType ServiceTypeName="WireMock_ContainerType" UseImplicitHost="true" /> |
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
pool: | |
vmImage: 'vs2017-win2016' | |
variables: | |
buildConfiguration: 'Debug' | |
buildId: "1$(Build.BuildId)" | |
steps: | |
# Print buildId | |
- script: | |
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
# Build source, tests and run tests netcoreapp2.1 (with coverage) | |
- script: | | |
dotnet test project.csproj --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover |
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
# Install SonarScanner | |
- script: | | |
dotnet tool install --global dotnet-sonarscanner | |
# Begin SonarScanner | |
- script: | | |
%USERPROFILE%\.dotnet\tools\dotnet-sonarscanner begin . . . |
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
variables: | |
buildId: "1$(Build.BuildId)" |
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
pool: | |
vmImage: 'vs2017-win2016' |
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 Newtonsoft.Json.Linq; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace WireMock.Util | |
{ | |
internal static class JsonUtils | |
{ |