35 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)
29
ObjectCreator = () => new global::Aspire.Hosting.
LaunchProfile
(),
Aspire.Hosting.Azure.Tests (10)
AzureContainerAppsTests.cs (1)
1732
["funcapp"] =
new
()
AzureDeployerTests.cs (1)
1146
["funcapp"] =
new
()
AzureFunctionsTests.cs (7)
434
["funcapp"] =
new
()
451
["funcapp"] =
new
()
468
["funcapp"] =
new
()
485
["funcapp"] =
new
()
501
["funcapp"] =
new
()
518
["funcapp"] =
new
()
535
["funcapp"] =
new
()
PublicApiTests\FunctionsPublicApiTests.cs (1)
104
["funcapp"] =
new
()
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (2)
695
["https"] =
new
()
705
["http"] =
new
()
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
425
["https"] =
new
()
435
["http"] =
new
()
Aspire.Hosting.Testing (1)
LaunchSettingsSerializerContext.LaunchProfile.g.cs (1)
29
ObjectCreator = () => new global::Aspire.Hosting.
LaunchProfile
(),
Aspire.Hosting.Tests (18)
Dcp\DcpExecutorTests.cs (5)
2199
settings.Profiles["Foo"] = new
LaunchProfile
2209
settings.Profiles["http"] = new
LaunchProfile
2238
settings.Profiles["Zed"] = new
LaunchProfile
{ CommandName = "Project", ApplicationUrl = "http://localhost:6001" };
2239
settings.Profiles["Alpha"] = new
LaunchProfile
{ CommandName = "Project", ApplicationUrl = "http://localhost:6002" };
2240
settings.Profiles["Beta"] = new
LaunchProfile
{ CommandName = "Project", ApplicationUrl = "http://localhost:6003" };
KestrelConfigTests.cs (1)
386
["OnlyHttp"] =
new
()
ProjectResourceTests.cs (9)
909
["http"] =
new
()
930
["https"] =
new
()
951
["https"] =
new
()
972
["IIS Express"] =
new
()
978
["ProjectProfile"] =
new
()
993
["IIS Express"] =
new
()
999
["Docker"] =
new
()
1014
["IIS Express"] =
new
()
1020
["Executable"] =
new
()
PublishAsDockerfileTests.cs (1)
473
["https"] = new
LaunchProfile
WithUrlsTests.cs (2)
945
["http"] =
new
()
951
["custom"] =
new
()
205 references to LaunchProfile
Aspire.Hosting (67)
Dcp\DcpExecutor.cs (1)
1751
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)
479
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);
174
if (!launchSettings.Profiles.TryGetValue(appHostDefaultLaunchProfileName, out
var
launchProfile) || launchProfile is null)
218
internal sealed record class NamedLaunchProfile(string Name,
LaunchProfile
LaunchProfile);
Aspire.Hosting.Azure.Functions (64)
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);
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);
174
if (!launchSettings.Profiles.TryGetValue(appHostDefaultLaunchProfileName, out
var
launchProfile) || launchProfile is null)
218
internal sealed record class NamedLaunchProfile(string Name,
LaunchProfile
LaunchProfile);
Aspire.Hosting.Azure.Tests (10)
AzureContainerAppsTests.cs (1)
1730
Profiles = new Dictionary<string,
LaunchProfile
>
AzureDeployerTests.cs (1)
1144
Profiles = new Dictionary<string,
LaunchProfile
>
AzureFunctionsTests.cs (7)
432
Profiles = new Dictionary<string,
LaunchProfile
>
449
Profiles = new Dictionary<string,
LaunchProfile
>
466
Profiles = new Dictionary<string,
LaunchProfile
>
483
Profiles = new Dictionary<string,
LaunchProfile
>
499
Profiles = new Dictionary<string,
LaunchProfile
>
516
Profiles = new Dictionary<string,
LaunchProfile
>
533
Profiles = new Dictionary<string,
LaunchProfile
>
PublicApiTests\FunctionsPublicApiTests.cs (1)
102
Profiles = new Dictionary<string,
LaunchProfile
>
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
689
public Dictionary<string,
LaunchProfile
>? Profiles { get; set; } = [];
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
419
public Dictionary<string,
LaunchProfile
>? Profiles { get; set; } = [];
Aspire.Hosting.Testing (60)
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;
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);
Aspire.Hosting.Tests (2)
ProjectResourceTests.cs (1)
893
protected Dictionary<string,
LaunchProfile
>? Profiles { get; set; } = new();
WithUrlsTests.cs (1)
943
Profiles = new Dictionary<string,
LaunchProfile
>