105 references to Run
Aspire.Hosting (5)
ApplicationModel\ResourceExtensions.cs (3)
155
/// This method has asynchronous behavior when <paramref name = "applicationOperation" /> is <see cref="DistributedApplicationOperation.
Run
"/>
186
DistributedApplicationOperation applicationOperation = DistributedApplicationOperation.
Run
)
206
(DistributedApplicationOperation.
Run
, IValueProvider provider) => await provider.GetValueAsync().ConfigureAwait(false),
DistributedApplicationBuilder.cs (1)
170
_ => new DistributedApplicationExecutionContextOptions(DistributedApplicationOperation.
Run
)
DistributedApplicationExecutionContext.cs (1)
69
public bool IsRunMode => Operation == DistributedApplicationOperation.
Run
;
Aspire.Hosting.Azure.Tests (4)
AzureBicepResourceTests.cs (1)
728
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(serviceA.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
AzurePostgresExtensionsTests.cs (1)
18
using var builder = TestDistributedApplicationBuilder.Create(publishMode ? DistributedApplicationOperation.Publish : DistributedApplicationOperation.
Run
);
AzureResourceExtensionsTests.cs (1)
189
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(cosmos.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
AzureSqlExtensionsTests.cs (1)
18
using var builder = TestDistributedApplicationBuilder.Create(publishMode ? DistributedApplicationOperation.Publish : DistributedApplicationOperation.
Run
);
Aspire.Hosting.Dapr.Tests (2)
DaprTests.cs (2)
59
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(container, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
158
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(container, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
Aspire.Hosting.Milvus.Tests (2)
AddMilvusTests.cs (2)
110
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
121
var containerConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(container1.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
Aspire.Hosting.MongoDB.Tests (1)
AddMongoDBTests.cs (1)
149
var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(mongoExpress, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
Aspire.Hosting.MySql.Tests (3)
AddMySqlTests.cs (3)
63
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
103
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
247
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(myAdmin, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
Aspire.Hosting.Oracle.Tests (3)
AddOracleTests.cs (3)
62
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
102
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
185
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
Aspire.Hosting.PostgreSQL.Tests (3)
AddPostgresTests.cs (3)
72
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
127
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
219
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
121
var environmentVariables = await pyproj.Resource.GetEnvironmentVariableValuesAsync(DistributedApplicationOperation.
Run
);
Aspire.Hosting.Qdrant.Tests (4)
AddQdrantTests.cs (4)
67
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
140
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
183
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
195
var containerConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(container1.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
Aspire.Hosting.Redis.Tests (2)
AddRedisTests.cs (2)
222
DistributedApplicationOperation.
Run
,
246
DistributedApplicationOperation.
Run
,
Aspire.Hosting.SqlServer.Tests (1)
AddSqlServerTests.cs (1)
63
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
Aspire.Hosting.Tests (74)
Dashboard\DashboardLifecycleHookTests.cs (1)
119
new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
),
Dashboard\DashboardResourceTests.cs (6)
107
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
211
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
246
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
278
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
319
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.
Run
, app.Services).DefaultTimeout();
357
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.
Run
, app.Services).DefaultTimeout();
Dashboard\TransportOptionsValidatorTests.cs (15)
16
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
55
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
73
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
88
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
109
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
128
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
148
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
170
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
192
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
217
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
242
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
264
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
286
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
302
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
318
var executionContext = new DistributedApplicationExecutionContext(DistributedApplicationOperation.
Run
);
Dcp\ApplicationExecutorTests.cs (1)
1081
new DistributedApplicationExecutionContext(new DistributedApplicationExecutionContextOptions(DistributedApplicationOperation.
Run
)
DistributedApplicationBuilderTests.cs (1)
19
[InlineData(new string[0], DistributedApplicationOperation.
Run
)]
ExpressionResolverTests.cs (3)
65
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(source.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance, "ContainerHostName").DefaultTimeout();
97
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(test.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance, "ContainerHostName").DefaultTimeout();
116
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(test.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance, "ContainerHostName").DefaultTimeout();
KestrelConfigTests.cs (8)
18
operation: DistributedApplicationOperation.
Run
,
41
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
54
operation: DistributedApplicationOperation.
Run
,
79
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
91
var resource = CreateTestProjectResource<ProjectWithKestrelHttpsEndpoint>(operation: DistributedApplicationOperation.
Run
);
108
var resource = CreateTestProjectResource<ProjectWithMultipleHttpKestrelEndpoints>(operation: DistributedApplicationOperation.
Run
);
135
operation: DistributedApplicationOperation.
Run
,
144
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
ProjectResourceTests.cs (15)
64
DistributedApplicationOperation.
Run
);
78
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
178
var appBuilder = CreateBuilder(args: [$"DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS={value}"], DistributedApplicationOperation.
Run
);
189
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
239
var appBuilder = CreateBuilder(operation: DistributedApplicationOperation.
Run
);
327
var appBuilder = CreateBuilder(operation: DistributedApplicationOperation.
Run
);
361
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
371
var appBuilder = CreateBuilder(operation: DistributedApplicationOperation.
Run
);
383
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
392
var appBuilder = CreateBuilder(operation: DistributedApplicationOperation.
Run
);
408
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
417
var appBuilder = CreateBuilder(operation: DistributedApplicationOperation.
Run
);
435
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
599
var appBuilder = CreateBuilder(operation: DistributedApplicationOperation.
Run
);
622
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
Utils\EnvironmentVariableEvaluator.cs (2)
9
DistributedApplicationOperation applicationOperation = DistributedApplicationOperation.
Run
,
38
(DistributedApplicationOperation.
Run
, IValueProvider provider) => await ExpressionResolver.ResolveAsync(resource.IsContainer(), provider, containerHostName, CancellationToken.None),
Utils\TestDistributedApplicationBuilder.cs (1)
37
DistributedApplicationOperation.
Run
=> (string[])[],
WithEndpointTests.cs (1)
215
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
WithEnvironmentTests.cs (8)
53
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
66
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
82
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
98
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
115
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
148
DistributedApplicationOperation.
Run
,
170
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
254
var runConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(targetBuilder.Resource, DistributedApplicationOperation.
Run
).DefaultTimeout();
WithReferenceTests.cs (12)
29
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
52
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
77
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
100
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
121
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
139
await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
153
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
172
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance);
191
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
242
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
264
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();
296
var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.
Run
, TestServiceProvider.Instance).DefaultTimeout();