dotnet new worker -o worker
cd worker
code-insiders .
- Add Dockerfile
az acr build -t workersidecar1:latest -r shayne .
if (AppendVersion) | |
{ | |
EnsureFileVersionProvider(); | |
Src = output.Attributes[SrcAttributeName].Value as string; | |
// Check if the CDN Base URI is set and add to the src attribute | |
if (!string.IsNullOrWhiteSpace(CdnUri)) | |
{ | |
output.Attributes.SetAttribute(SrcAttributeName, string.Format("{0}{1}", CdnUri, _fileVersionProvider.AddFileVersionToPath(Src))); | |
} | |
} |
//Retrieve any existing onerror handler code | |
var onError = output.Attributes[OnErrorAttributeName] ? .Value as string; | |
//Check if there's a fallback source and no onerror handler | |
if (!string.IsNullOrWhiteSpace(FallbackSrc) && string.IsNullOrWhiteSpace(onError)) { | |
string resolvedUrl; | |
if (TryResolveUrl(FallbackSrc, out resolvedUrl)) { | |
FallbackSrc = resolvedUrl; | |
} | |
if (AppendVersion) { | |
FallbackSrc = _fileVersionProvider.AddFileVersionToPath(FallbackSrc); |
function dockerstopall { | |
echo ’stopping all containers’; | |
docker stop $(docker ps -a -q); | |
} | |
function dockerremoveallcontainers { | |
echo ‘removing all containers’; | |
docker rm $(docker ps -a -q); | |
} |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: apiservice | |
labels: | |
app: apiservice | |
spec: | |
replicas: 1 | |
template: | |
metadata: |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
CreateWebHostBuilder(args).Build().Run(); | |
} | |
public static IWebHostBuilder CreateWebHostBuilder(string[] args) => | |
WebHost.CreateDefaultBuilder(args) | |
.UseStartup<Startup>(); |
dotnet new worker -o worker
cd worker
code-insiders .
az acr build -t workersidecar1:latest -r shayne .
File > New Project > Empty Web
@description('Generated from /subscriptions/<mysubid>/resourceGroups/dotnetazdsample-rg/providers/Microsoft.Web/sites/app-api-us4wfunnnezqy') | |
resource appapiuswfunnnezqy 'Microsoft.Web/sites@2022-03-01' = { | |
name: 'app-api-us4wfunnnezqy' | |
kind: 'app' | |
location: 'South Central US' | |
tags: { | |
'azd-env-name': 'dotnetazdsample' | |
'azd-service-name': 'api' | |
} |
o [Music] hello hello everyone welcome to the vs code live stream if you are new here my name is Olivia I am a developer Advocate on the vs code team um and I'm so happy to be here with you all um the live streams are a great chance for us to bring guests on Spotlight different features different things that use vs code um we have a really great lineup today that we're going to be talking about some great guests um but before we dive into that let me know where you're watching from in the chat um if you haven't been | |
in these before we really like to make this an interactive experience um so as we go through the demo today talking about the product we'll be showing off um definitely let us know your questions we'll be monitoring the chat for that um and asking our guests as we go so it's a great chance for you to be able to talk firsthand with the people people who work on the product you love hello abriel Hi how are you doing thanks so much for joining um definitely drop in the |