This file is automatically generated by the update_all.ps1 script using the AU module.
Ignored | History | Force Test | Releases
This file is automatically generated by the update_all.ps1 script using the AU module.
Ignored | History | Force Test | Releases
$ErrorActionPreference = "Stop" | |
if ((Get-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V -Online).State -ne 'Enabled') { | |
Enable-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V -Online -All -NoRestart | |
} | |
if ((Get-WindowsOptionalFeature -FeatureName Containers -Online).State -ne 'Enabled') { | |
Enable-WindowsOptionalFeature -FeatureName Containers -Online -All -NoRestart | |
} |
robocopy "\\some\share\containing\backup" "C:\some\local\drive" database-backup*.sqb /Z /ETA /TEE /W:2 /xo | |
using System; | |
using System.Diagnostics; | |
using System.Threading; | |
using Microsoft.Extensions.Configuration; | |
using Polly; | |
using Polly.Bulkhead; | |
using Xunit; | |
namespace test | |
{ |
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build-env | |
WORKDIR /app | |
RUN dotnet new webapi | |
RUN dotnet publish -c Release -o out | |
FROM mcr.microsoft.com/dotnet/core/aspnet | |
ENV ASPNETCORE_URLS http://+:80 | |
EXPOSE 80 | |
WORKDIR /app | |
COPY --from=build-env /app/out ./ |
public static IArgumentMatcher? Create(Expression arg) => arg switch | |
{ | |
MethodCallExpression call when call.Method.DeclaringType == typeof(Arg) => call.Method.Name switch | |
{ | |
nameof(Arg.Ignore) => (IArgumentMatcher)new IgnoreArgument(), | |
nameof(Arg.Where) => new LambdaArgument(call.Arguments.Single()), | |
_ => throw new InvalidOperationException() | |
}, | |
_ => null | |
}; |
asdf
using (var host = new HostBuilder()
.ConfigureWebJobs(builder => builder
.AddTimers()
.AddDurableTaskInTestHub()
.AddAzureStorageCoreServices()
.ConfigureServices(services => services.AddSingleton(mock)))
.Build())
{ | |
"variables": { | |
"vm_size": "Standard_DS13_v2", | |
}, | |
"builders": [ | |
{ | |
"name": "azure-arm", | |
"type": "azure-arm", | |
"client_id": "{{user `client_id`}}", | |
"client_secret": "{{user `client_secret`}}", |