33 instantiations of LaunchProfile
Aspire.Hosting (1)
LaunchSettingsSerializerContext.LaunchProfile.g.cs (1)
29
ObjectCreator = () => new global::Aspire.Hosting.
LaunchProfile
(),
Aspire.Hosting.Azure.Functions (1)
LaunchSettingsSerializerContext.LaunchProfile.g.cs (1)
31
ObjectCreator = () => new global::Aspire.Hosting.
LaunchProfile
(),
Aspire.Hosting.Azure.Tests (10)
AzureContainerAppsTests.cs (1)
1728
["funcapp"] =
new
()
AzureDeployerTests.cs (1)
939
["funcapp"] =
new
()
AzureFunctionsTests.cs (7)
429
["funcapp"] =
new
()
446
["funcapp"] =
new
()
463
["funcapp"] =
new
()
480
["funcapp"] =
new
()
496
["funcapp"] =
new
()
513
["funcapp"] =
new
()
530
["funcapp"] =
new
()
PublicApiTests\FunctionsPublicApiTests.cs (1)
104
["funcapp"] =
new
()
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (2)
548
["https"] =
new
()
558
["http"] =
new
()
Aspire.Hosting.Testing (1)
LaunchSettingsSerializerContext.LaunchProfile.g.cs (1)
31
ObjectCreator = () => new global::Aspire.Hosting.
LaunchProfile
(),
Aspire.Hosting.Tests (18)
Dcp\DcpExecutorTests.cs (5)
1743
settings.Profiles["Foo"] = new
LaunchProfile
1753
settings.Profiles["http"] = new
LaunchProfile
1782
settings.Profiles["Zed"] = new
LaunchProfile
{ CommandName = "Project", ApplicationUrl = "http://localhost:6001" };
1783
settings.Profiles["Alpha"] = new
LaunchProfile
{ CommandName = "Project", ApplicationUrl = "http://localhost:6002" };
1784
settings.Profiles["Beta"] = new
LaunchProfile
{ CommandName = "Project", ApplicationUrl = "http://localhost:6003" };
KestrelConfigTests.cs (1)
386
["OnlyHttp"] =
new
()
ProjectResourceTests.cs (9)
775
["http"] =
new
()
796
["https"] =
new
()
817
["https"] =
new
()
838
["IIS Express"] =
new
()
844
["ProjectProfile"] =
new
()
859
["IIS Express"] =
new
()
865
["Docker"] =
new
()
880
["IIS Express"] =
new
()
886
["Executable"] =
new
()
PublishAsDockerfileTests.cs (1)
378
["https"] = new
LaunchProfile
WithUrlsTests.cs (2)
866
["http"] =
new
()
872
["custom"] =
new
()
224 references to LaunchProfile
Aspire.Hosting (67)
Dcp\DcpExecutor.cs (1)
1298
private static List<string> GetLaunchProfileArgs(
LaunchProfile
? launchProfile)
LaunchSettings.cs (1)
17
public Dictionary<string,
LaunchProfile
> Profiles { get; set; } = [];
LaunchSettingsSerializerContext.DictionaryStringLaunchProfile.g.cs (13)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>? _DictionaryStringLaunchProfile;
18
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>> DictionaryStringLaunchProfile
20
get => _DictionaryStringLaunchProfile ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>));
23
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>> Create_DictionaryStringLaunchProfile(global::System.Text.Json.JsonSerializerOptions options)
25
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>> jsonTypeInfo))
27
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>
29
ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>(),
33
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>, string, global::Aspire.Hosting.
LaunchProfile
>(options, info);
43
private void DictionaryStringLaunchProfileSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>? value)
53
foreach (global::System.Collections.Generic.KeyValuePair<string, global::Aspire.Hosting.
LaunchProfile
> entry in value)
LaunchSettingsSerializerContext.GetJsonTypeInfo.g.cs (2)
30
if (type == typeof(global::Aspire.Hosting.
LaunchProfile
))
38
if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>))
LaunchSettingsSerializerContext.LaunchProfile.g.cs (42)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
>? _LaunchProfile;
18
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
> LaunchProfile
20
get => _LaunchProfile ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
>)Options.GetTypeInfo(typeof(global::Aspire.Hosting.
LaunchProfile
));
23
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
> Create_LaunchProfile(global::System.Text.Json.JsonSerializerOptions options)
25
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Hosting.
LaunchProfile
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
> jsonTypeInfo))
27
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Hosting.
LaunchProfile
>
36
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Hosting.
LaunchProfile
>(options, objectInfo);
53
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
55
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).CommandName,
56
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).CommandName = value!,
72
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
74
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).CommandLineArgs,
75
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).CommandLineArgs = value!,
91
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
93
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).ExecutablePath,
94
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).ExecutablePath = value!,
110
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
112
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).DotnetRunMessages,
113
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).DotnetRunMessages = value!,
129
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
131
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).LaunchBrowser,
132
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).LaunchBrowser = value!,
148
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
150
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).LaunchUrl,
151
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).LaunchUrl = value!,
167
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
169
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).ApplicationUrl,
170
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).ApplicationUrl = value!,
186
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
188
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).EnvironmentVariables,
189
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).EnvironmentVariables = value!,
205
private void LaunchProfileSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Hosting.
LaunchProfile
? value)
215
writer.WriteString(PropName_commandName, ((global::Aspire.Hosting.
LaunchProfile
)value).CommandName);
216
writer.WriteString(PropName_commandLineArgs, ((global::Aspire.Hosting.
LaunchProfile
)value).CommandLineArgs);
217
writer.WriteString(PropName_executablePath, ((global::Aspire.Hosting.
LaunchProfile
)value).ExecutablePath);
219
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Hosting.
LaunchProfile
)value).DotnetRunMessages, NullableBoolean);
221
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Hosting.
LaunchProfile
)value).LaunchBrowser, NullableBoolean);
222
writer.WriteString(PropName_launchUrl, ((global::Aspire.Hosting.
LaunchProfile
)value).LaunchUrl);
223
writer.WriteString(PropName_applicationUrl, ((global::Aspire.Hosting.
LaunchProfile
)value).ApplicationUrl);
225
DictionaryStringStringSerializeHandler(writer, ((global::Aspire.Hosting.
LaunchProfile
)value).EnvironmentVariables);
LaunchSettingsSerializerContext.LaunchSettings.g.cs (2)
48
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>
65
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>(options, info0);
ProjectResourceBuilderExtensions.cs (1)
345
var
launchProfile = effectiveLaunchProfile?.LaunchProfile;
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (5)
42
var
launchProfile = projectResource.GetLaunchProfile(launchProfileName, throwIfNotFound);
51
internal static
LaunchProfile
? GetLaunchProfile(this ProjectResource projectResource, string launchProfileName, bool throwIfNotFound = false)
59
var found = profiles.TryGetValue(launchProfileName, out
var
launchProfile);
158
if (!launchSettings.Profiles.TryGetValue(appHostDefaultLaunchProfileName, out
var
launchProfile) || launchProfile is null)
202
internal sealed record class NamedLaunchProfile(string Name,
LaunchProfile
LaunchProfile);
Aspire.Hosting.Azure.Functions (74)
LaunchSettingsSerializerContext.DictionaryStringLaunchProfile.g.cs (13)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>? _DictionaryStringLaunchProfile;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>> DictionaryStringLaunchProfile
22
get => _DictionaryStringLaunchProfile ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>> Create_DictionaryStringLaunchProfile(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>
31
ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>(),
35
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>, string, global::Aspire.Hosting.
LaunchProfile
>(options, info);
45
private void DictionaryStringLaunchProfileSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>? value)
55
foreach (global::System.Collections.Generic.KeyValuePair<string, global::Aspire.Hosting.
LaunchProfile
> entry in value)
LaunchSettingsSerializerContext.GetJsonTypeInfo.g.cs (2)
30
if (type == typeof(global::Aspire.Hosting.
LaunchProfile
))
38
if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>))
LaunchSettingsSerializerContext.LaunchProfile.g.cs (51)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
>? _LaunchProfile;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
> LaunchProfile
22
get => _LaunchProfile ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
>)Options.GetTypeInfo(typeof(global::Aspire.Hosting.
LaunchProfile
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
> Create_LaunchProfile(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Hosting.
LaunchProfile
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Hosting.
LaunchProfile
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Hosting.
LaunchProfile
>(options, objectInfo);
56
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
58
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).CommandName,
59
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).CommandName = value!,
66
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("CommandName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
76
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
78
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).CommandLineArgs,
79
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).CommandLineArgs = value!,
86
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("CommandLineArgs", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
96
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
98
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).ExecutablePath,
99
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).ExecutablePath = value!,
106
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("ExecutablePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
116
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
118
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).DotnetRunMessages,
119
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).DotnetRunMessages = value!,
126
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("DotnetRunMessages", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null),
136
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
138
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).LaunchBrowser,
139
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).LaunchBrowser = value!,
146
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("LaunchBrowser", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null),
156
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
158
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).LaunchUrl,
159
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).LaunchUrl = value!,
166
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("LaunchUrl", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
176
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
178
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).ApplicationUrl,
179
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).ApplicationUrl = value!,
186
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("ApplicationUrl", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
196
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
198
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).EnvironmentVariables,
199
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).EnvironmentVariables = value!,
206
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("EnvironmentVariables", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
218
private void LaunchProfileSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Hosting.
LaunchProfile
? value)
228
writer.WriteString(PropName_commandName, ((global::Aspire.Hosting.
LaunchProfile
)value).CommandName);
229
writer.WriteString(PropName_commandLineArgs, ((global::Aspire.Hosting.
LaunchProfile
)value).CommandLineArgs);
230
writer.WriteString(PropName_executablePath, ((global::Aspire.Hosting.
LaunchProfile
)value).ExecutablePath);
232
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Hosting.
LaunchProfile
)value).DotnetRunMessages, NullableBoolean);
234
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Hosting.
LaunchProfile
)value).LaunchBrowser, NullableBoolean);
235
writer.WriteString(PropName_launchUrl, ((global::Aspire.Hosting.
LaunchProfile
)value).LaunchUrl);
236
writer.WriteString(PropName_applicationUrl, ((global::Aspire.Hosting.
LaunchProfile
)value).ApplicationUrl);
238
DictionaryStringStringSerializeHandler(writer, ((global::Aspire.Hosting.
LaunchProfile
)value).EnvironmentVariables);
LaunchSettingsSerializerContext.LaunchSettings.g.cs (3)
51
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>
66
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.LaunchSettings).GetProperty("Profiles", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>), global::System.Array.Empty<global::System.Type>(), null),
69
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>(options, info0);
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (5)
42
var
launchProfile = projectResource.GetLaunchProfile(launchProfileName, throwIfNotFound);
51
internal static
LaunchProfile
? GetLaunchProfile(this ProjectResource projectResource, string launchProfileName, bool throwIfNotFound = false)
59
var found = profiles.TryGetValue(launchProfileName, out
var
launchProfile);
158
if (!launchSettings.Profiles.TryGetValue(appHostDefaultLaunchProfileName, out
var
launchProfile) || launchProfile is null)
202
internal sealed record class NamedLaunchProfile(string Name,
LaunchProfile
LaunchProfile);
Aspire.Hosting.Azure.Tests (10)
AzureContainerAppsTests.cs (1)
1726
Profiles = new Dictionary<string,
LaunchProfile
>
AzureDeployerTests.cs (1)
937
Profiles = new Dictionary<string,
LaunchProfile
>
AzureFunctionsTests.cs (7)
427
Profiles = new Dictionary<string,
LaunchProfile
>
444
Profiles = new Dictionary<string,
LaunchProfile
>
461
Profiles = new Dictionary<string,
LaunchProfile
>
478
Profiles = new Dictionary<string,
LaunchProfile
>
494
Profiles = new Dictionary<string,
LaunchProfile
>
511
Profiles = new Dictionary<string,
LaunchProfile
>
528
Profiles = new Dictionary<string,
LaunchProfile
>
PublicApiTests\FunctionsPublicApiTests.cs (1)
102
Profiles = new Dictionary<string,
LaunchProfile
>
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
542
public Dictionary<string,
LaunchProfile
>? Profiles { get; set; } = [];
Aspire.Hosting.Testing (70)
DistributedApplicationFactory.cs (1)
277
LaunchProfile
? launchProfile;
LaunchSettingsSerializerContext.DictionaryStringLaunchProfile.g.cs (13)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>? _DictionaryStringLaunchProfile;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>> DictionaryStringLaunchProfile
22
get => _DictionaryStringLaunchProfile ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>> Create_DictionaryStringLaunchProfile(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>
31
ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>(),
35
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>, string, global::Aspire.Hosting.
LaunchProfile
>(options, info);
45
private void DictionaryStringLaunchProfileSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>? value)
55
foreach (global::System.Collections.Generic.KeyValuePair<string, global::Aspire.Hosting.
LaunchProfile
> entry in value)
LaunchSettingsSerializerContext.GetJsonTypeInfo.g.cs (2)
30
if (type == typeof(global::Aspire.Hosting.
LaunchProfile
))
38
if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>))
LaunchSettingsSerializerContext.LaunchProfile.g.cs (51)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
>? _LaunchProfile;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
> LaunchProfile
22
get => _LaunchProfile ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
>)Options.GetTypeInfo(typeof(global::Aspire.Hosting.
LaunchProfile
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
> Create_LaunchProfile(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Hosting.
LaunchProfile
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.
LaunchProfile
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Hosting.
LaunchProfile
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Hosting.
LaunchProfile
>(options, objectInfo);
56
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
58
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).CommandName,
59
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).CommandName = value!,
66
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("CommandName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
76
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
78
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).CommandLineArgs,
79
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).CommandLineArgs = value!,
86
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("CommandLineArgs", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
96
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
98
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).ExecutablePath,
99
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).ExecutablePath = value!,
106
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("ExecutablePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
116
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
118
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).DotnetRunMessages,
119
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).DotnetRunMessages = value!,
126
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("DotnetRunMessages", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null),
136
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
138
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).LaunchBrowser,
139
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).LaunchBrowser = value!,
146
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("LaunchBrowser", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null),
156
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
158
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).LaunchUrl,
159
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).LaunchUrl = value!,
166
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("LaunchUrl", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
176
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
178
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).ApplicationUrl,
179
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).ApplicationUrl = value!,
186
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("ApplicationUrl", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
196
DeclaringType = typeof(global::Aspire.Hosting.
LaunchProfile
),
198
Getter = static obj => ((global::Aspire.Hosting.
LaunchProfile
)obj).EnvironmentVariables,
199
Setter = static (obj, value) => ((global::Aspire.Hosting.
LaunchProfile
)obj).EnvironmentVariables = value!,
206
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.
LaunchProfile
).GetProperty("EnvironmentVariables", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
218
private void LaunchProfileSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Hosting.
LaunchProfile
? value)
228
writer.WriteString(PropName_commandName, ((global::Aspire.Hosting.
LaunchProfile
)value).CommandName);
229
writer.WriteString(PropName_commandLineArgs, ((global::Aspire.Hosting.
LaunchProfile
)value).CommandLineArgs);
230
writer.WriteString(PropName_executablePath, ((global::Aspire.Hosting.
LaunchProfile
)value).ExecutablePath);
232
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Hosting.
LaunchProfile
)value).DotnetRunMessages, NullableBoolean);
234
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Hosting.
LaunchProfile
)value).LaunchBrowser, NullableBoolean);
235
writer.WriteString(PropName_launchUrl, ((global::Aspire.Hosting.
LaunchProfile
)value).LaunchUrl);
236
writer.WriteString(PropName_applicationUrl, ((global::Aspire.Hosting.
LaunchProfile
)value).ApplicationUrl);
238
DictionaryStringStringSerializeHandler(writer, ((global::Aspire.Hosting.
LaunchProfile
)value).EnvironmentVariables);
LaunchSettingsSerializerContext.LaunchSettings.g.cs (3)
51
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>
66
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.LaunchSettings).GetProperty("Profiles", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>), global::System.Array.Empty<global::System.Type>(), null),
69
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Aspire.Hosting.
LaunchProfile
>>(options, info0);
Aspire.Hosting.Tests (2)
ProjectResourceTests.cs (1)
759
protected Dictionary<string,
LaunchProfile
>? Profiles { get; set; } = new();
WithUrlsTests.cs (1)
864
Profiles = new Dictionary<string,
LaunchProfile
>