30 instantiations of EnvironmentCheckResult
aspire (30)
JsonSourceGenerationContext.EnvironmentCheckResult.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult(){ Category = (string)args[0], Name = (string)args[1], Status = (global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckStatus)args[2], Message = (string)args[3], Fix = (string)args[4], Link = (string)args[5], Details = (string)args[6] },
Utils\EnvironmentChecker\ContainerRuntimeCheck.cs (16)
60return [new EnvironmentCheckResult 73return [new EnvironmentCheckResult 103return new EnvironmentCheckResult 124return new EnvironmentCheckResult 155return new EnvironmentCheckResult 171return new EnvironmentCheckResult 182return new EnvironmentCheckResult 207return new EnvironmentCheckResult 225return new EnvironmentCheckResult 251return new EnvironmentCheckResult 272return new EnvironmentCheckResult 286return new EnvironmentCheckResult 307return new EnvironmentCheckResult 318return new EnvironmentCheckResult 327return new EnvironmentCheckResult 338return new EnvironmentCheckResult
Utils\EnvironmentChecker\DevCertsCheck.cs (8)
27return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([new EnvironmentCheckResult 59results.Add(new EnvironmentCheckResult 72results.Add(new EnvironmentCheckResult 88results.Add(new EnvironmentCheckResult 102results.Add(new EnvironmentCheckResult 116results.Add(new EnvironmentCheckResult 129results.Add(new EnvironmentCheckResult 146return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([new EnvironmentCheckResult
Utils\EnvironmentChecker\DotNetSdkCheck.cs (3)
31return [new EnvironmentCheckResult 46return [new EnvironmentCheckResult 57return [new EnvironmentCheckResult
Utils\EnvironmentChecker\WslEnvironmentCheck.cs (2)
39return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([new EnvironmentCheckResult 51return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([new EnvironmentCheckResult
75 references to EnvironmentCheckResult
aspire (75)
Commands\DoctorCommand.cs (4)
63private void OutputJson(IReadOnlyList<EnvironmentCheckResult> results) 84private void OutputHumanReadable(IReadOnlyList<EnvironmentCheckResult> results) 101foreach (var result in group) 123private void OutputCheckResult(EnvironmentCheckResult result)
JsonSourceGenerationContext.cs (1)
17[JsonSerializable(typeof(EnvironmentCheckResult))]
JsonSourceGenerationContext.DoctorCheckResponse.g.cs (5)
32ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Utils.EnvironmentChecker.DoctorCheckResponse(){ Checks = (global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>)args[0], Summary = (global::Aspire.Cli.Utils.EnvironmentChecker.DoctorCheckSummary)args[1] }, 51var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>> 66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.DoctorCheckResponse).GetProperty("Checks", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>), global::System.Array.Empty<global::System.Type>(), null), 69properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>>(options, info0); 125ParameterType = typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>),
JsonSourceGenerationContext.EnvironmentCheckResult.g.cs (31)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>? _EnvironmentCheckResult; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult> EnvironmentCheckResult 22get => _EnvironmentCheckResult ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult> Create_EnvironmentCheckResult(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult> 35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>(options, objectInfo); 56DeclaringType = typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult), 58Getter = static obj => ((global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)obj).Category, 66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetProperty("Category", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult), 80Getter = static obj => ((global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)obj).Name, 88AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 100DeclaringType = typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult), 102Getter = static obj => ((global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)obj).Status, 110AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetProperty("Status", InstanceMemberBindingFlags, null, typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckStatus), global::System.Array.Empty<global::System.Type>(), null), 120DeclaringType = typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult), 122Getter = static obj => ((global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)obj).Message, 130AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 142DeclaringType = typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult), 144Getter = static obj => ((global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)obj).Fix, 152AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetProperty("Fix", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 162DeclaringType = typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult), 164Getter = static obj => ((global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)obj).Link, 172AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetProperty("Link", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 182DeclaringType = typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult), 184Getter = static obj => ((global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)obj).Details, 192AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
JsonSourceGenerationContext.GetJsonTypeInfo.g.cs (2)
42if (type == typeof(global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult)) 54if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>))
JsonSourceGenerationContext.ListEnvironmentCheckResult.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>>? _ListEnvironmentCheckResult; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>> ListEnvironmentCheckResult 22get => _ListEnvironmentCheckResult ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>> Create_ListEnvironmentCheckResult(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>> 31ObjectCreator = () => new global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>(), 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>, global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>(options, info); 45private void ListEnvironmentCheckResultSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Aspire.Cli.Utils.EnvironmentChecker.EnvironmentCheckResult>? value)
Utils\EnvironmentChecker\ContainerRuntimeCheck.cs (4)
30public async Task<IReadOnlyList<EnvironmentCheckResult>> CheckAsync(CancellationToken cancellationToken = default) 35var dockerCheck = await CheckSpecificContainerRuntimeAsync("Docker", cancellationToken); 41var podmanCheck = await CheckSpecificContainerRuntimeAsync("Podman", cancellationToken); 84private async Task<EnvironmentCheckResult> CheckSpecificContainerRuntimeAsync(string runtime, CancellationToken cancellationToken)
Utils\EnvironmentChecker\DevCertsCheck.cs (5)
19public Task<IReadOnlyList<EnvironmentCheckResult>> CheckAsync(CancellationToken cancellationToken = default) 27return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([new EnvironmentCheckResult 45var results = new List<EnvironmentCheckResult>(); 141return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>(results); 146return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([new EnvironmentCheckResult
Utils\EnvironmentChecker\DotNetSdkCheck.cs (1)
16public async Task<IReadOnlyList<EnvironmentCheckResult>> CheckAsync(CancellationToken cancellationToken = default)
Utils\EnvironmentChecker\EnvironmentChecker.cs (2)
16public async Task<IReadOnlyList<EnvironmentCheckResult>> CheckAllAsync(CancellationToken cancellationToken = default) 18var results = new List<EnvironmentCheckResult>();
Utils\EnvironmentChecker\EnvironmentCheckResult.cs (1)
114public required List<EnvironmentCheckResult> Checks { get; set; }
Utils\EnvironmentChecker\IEnvironmentCheck.cs (1)
21Task<IReadOnlyList<EnvironmentCheckResult>> CheckAsync(CancellationToken cancellationToken = default);
Utils\EnvironmentChecker\IEnvironmentChecker.cs (1)
16Task<IReadOnlyList<EnvironmentCheckResult>> CheckAllAsync(CancellationToken cancellationToken = default);
Utils\EnvironmentChecker\WslEnvironmentCheck.cs (5)
16public Task<IReadOnlyList<EnvironmentCheckResult>> CheckAsync(CancellationToken cancellationToken = default) 22return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([]); 31return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([]); 39return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([new EnvironmentCheckResult 51return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([new EnvironmentCheckResult