46 references to WithArgs
Aspire.Hosting (1)
ContainerResourceBuilderExtensions.cs (1)
392
/// This is intended to pass additional arguments to the underlying container runtime run command to enable advanced features such as exposing GPUs to the container. To pass runtime arguments to the actual container, use the <see cref="ResourceBuilderExtensions.
WithArgs
{T}(IResourceBuilder{T}, string[])"/> method.
Aspire.Hosting.Azure.Storage (1)
AzureStorageExtensions.cs (1)
224
.
WithArgs
("azurite", "-l", "/data", "--blobHost", "0.0.0.0", "--queueHost", "0.0.0.0", "--tableHost", "0.0.0.0", SkipApiVersionCheckArgument);
Aspire.Hosting.Azure.Tests (2)
AzureAppServiceTests.cs (1)
492
.
WithArgs
("--myarg", "myvalue")
AzureContainerAppsTests.cs (1)
244
.
WithArgs
("my", "args with space");
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
101
.
WithArgs
("host", tunnelId, "--nologo")
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
38
.
WithArgs
("-c", "hello $MSG")
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
680
.
WithArgs
(installCommand.Args);
Aspire.Hosting.Keycloak (3)
KeycloakResourceBuilderExtensions.cs (3)
77
keycloak.
WithArgs
("start-dev");
81
keycloak.
WithArgs
("start");
84
keycloak.
WithArgs
("--import-realm");
Aspire.Hosting.Milvus (1)
MilvusBuilderExtensions.cs (1)
69
.
WithArgs
("milvus", "run", "standalone");
Aspire.Hosting.Nats (4)
NatsBuilderExtensions.cs (4)
125
return builder.
WithArgs
(args.ToArray());
137
return builder.
WithArgs
("-js");
153
.
WithArgs
("-sd", "/var/lib/nats");
169
.
WithArgs
("-sd", "/var/lib/nats");
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
306
.
WithArgs
("--bookmarks-dir=/.pgweb/bookmarks")
307
.
WithArgs
("--sessions")
Aspire.Hosting.Python (4)
PythonAppResourceBuilderExtensions.cs (4)
179
.
WithArgs
(scriptArgs);
222
.
WithArgs
(scriptArgs);
1309
.
WithArgs
(installCommand.Args);
1364
.
WithArgs
(["-m", "venv", venvPath])
Aspire.Hosting.Python.Tests (12)
AddPythonAppTests.cs (12)
234
.
WithArgs
("test");
504
.
WithArgs
("arg1", "arg2")
1048
.
WithArgs
("run", "--debug", "--host=0.0.0.0");
1072
.
WithArgs
("arg1", "arg2");
1094
.
WithArgs
("-q", "--verbose");
1116
.
WithArgs
("arg1", "arg2");
1120
.
WithArgs
("main:app", "--reload");
1371
.
WithArgs
("arg1", "arg2");
1409
.
WithArgs
("arg1", "arg2");
1449
.
WithArgs
("run");
1486
.
WithArgs
("run");
1519
.
WithArgs
("arg1", "arg2");
Aspire.Hosting.Tests (7)
DistributedApplicationTests.cs (1)
540
.
WithArgs
("redis-cli", "-h", "host.docker.internal", "-p", "9999", "MONITOR")
ManifestGenerationTests.cs (1)
147
resourceBuilder.
WithArgs
(withArgsArgs);
ProjectResourceTests.cs (1)
540
.
WithArgs
("one", "two");
PublishAsDockerfileTests.cs (4)
159
.
WithArgs
("/usr/foo")
163
c.
WithArgs
("/app");
220
.
WithArgs
("/usr/foo")
224
c.
WithArgs
("/app");
Aspire.Hosting.Yarp (1)
YarpResourceExtensions.cs (1)
40
.
WithArgs
("/app/yarp.dll")
KafkaBasic.AppHost (2)
Program.cs (2)
11
.
WithArgs
(kafka.Resource.Name);
15
.
WithArgs
(kafka.Resource.Name);
Python.AppHost (2)
Program.cs (2)
10
.
WithArgs
("api:app", "--reload", "--host=0.0.0.0", "--port=8000")
17
.
WithArgs
("api:app", "--reload", "--host=0.0.0.0", "--port=8001")
Stress.AppHost (1)
Program.cs (1)
161
.
WithArgs
("arg_from_apphost");