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
0x10459EA30C46269CD8c0f5D3Be8Ea29e1E4e3f8e |
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 System.Text.RegularExpressions; | |
using Nethereum.Util; | |
namespace SupplyChain.BlockChain.Validation | |
{ | |
/// <inheritdoc cref="IAddressValidator"/> | |
public class AddressValidator : IAddressValidator | |
{ | |
private static readonly Regex AddressRegex = new Regex("^0[xX]([A-Fa-f0-9]{40})$"); | |
private static readonly AddressUtil AddressUtil = new AddressUtil(); |
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 | |
{ |
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
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
# 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
# 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
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
<?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
using Microsoft.Azure.EventHubs; | |
using Microsoft.Azure.EventHubs.Processor; | |
using System; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace EventHubExampleNew | |
{ | |
/// <summary> | |
/// Code based on: |
OlderNewer