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