3 types derived from RunApiOutput
dotnet (3)
Commands\Run\Api\RunApiCommand.cs (3)
159public sealed class Error : RunApiOutput 165public sealed class Project : RunApiOutput 172public sealed class RunCommand : RunApiOutput
127 references to RunApiOutput
dotnet (127)
_generated\22\RunFileApiJsonSerializerContext.RunApiOutput.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput>? _RunApiOutput; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput> RunApiOutput 22get => _RunApiOutput ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput>)Options.GetTypeInfo(typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput> Create_RunApiOutput(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput), 58Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)obj).Version, 66AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
_generated\23\RunFileApiJsonSerializerContext.Error.g.cs (28)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error>? _Error; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error> Error 22get => _Error ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error>)Options.GetTypeInfo(typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error> Create_Error(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error> 32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error(){ Message = (string)args[0], Details = (string)args[1] }, 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error), 58Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error)obj).Message, 59Setter = static (obj, value) => __set_Error_Message((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error)obj, value!), 66AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 79DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error), 81Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error)obj).Details, 82Setter = static (obj, value) => __set_Error_Details((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error)obj, value!), 89AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 102DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput), 104Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)obj).Version, 112AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 123private void ErrorSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error? value) 133writer.WriteNumber(PropName_Version, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)value).Version); 134writer.WriteString(PropName_Message, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error)value).Message); 135writer.WriteString(PropName_Details, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error)value).Details); 162private static extern void __set_Error_Message(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error obj, string value); 164private static extern void __set_Error_Details(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error obj, string value);
_generated\24\RunFileApiJsonSerializerContext.Project.g.cs (34)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project>? _Project; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project> Project 22get => _Project ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project>)Options.GetTypeInfo(typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project> Create_Project(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project> 32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project(){ Content = (string)args[0], ProjectPath = (string)args[1], Diagnostics = (global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>)args[2] }, 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project), 58Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)obj).Content, 59Setter = static (obj, value) => __set_Project_Content((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)obj, value!), 66AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project).GetProperty("Content", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 79DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project), 81Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)obj).ProjectPath, 82Setter = static (obj, value) => __set_Project_ProjectPath((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)obj, value!), 89AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project).GetProperty("ProjectPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 102DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project), 104Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)obj).Diagnostics, 105Setter = static (obj, value) => __set_Project_Diagnostics((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)obj, value!), 112AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project).GetProperty("Diagnostics", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>), global::System.Array.Empty<global::System.Type>(), null), 123DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput), 125Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)obj).Version, 133AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 144private void ProjectSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project? value) 154writer.WriteNumber(PropName_Version, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)value).Version); 155writer.WriteString(PropName_Content, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)value).Content); 156writer.WriteString(PropName_ProjectPath, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)value).ProjectPath); 158ImmutableArraySimpleDiagnosticSerializeHandler(writer, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)value).Diagnostics); 194private static extern void __set_Project_Content(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project obj, string value); 196private static extern void __set_Project_ProjectPath(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project obj, string value); 198private static extern void __set_Project_Diagnostics(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project obj, global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic> value);
_generated\25\RunFileApiJsonSerializerContext.RunCommand.g.cs (40)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand>? _RunCommand; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand> RunCommand 22get => _RunCommand ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand>)Options.GetTypeInfo(typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand> Create_RunCommand(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand> 32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand(){ ExecutablePath = (string)args[0], CommandLineArguments = (string)args[1], WorkingDirectory = (string)args[2], EnvironmentVariables = (global::System.Collections.Generic.IReadOnlyDictionary<string, string>)args[3] }, 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand), 58Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj).ExecutablePath, 59Setter = static (obj, value) => __set_RunCommand_ExecutablePath((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj, value!), 66AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand).GetProperty("ExecutablePath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 79DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand), 81Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj).CommandLineArguments, 82Setter = static (obj, value) => __set_RunCommand_CommandLineArguments((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj, value!), 89AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand).GetProperty("CommandLineArguments", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 102DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand), 104Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj).WorkingDirectory, 105Setter = static (obj, value) => __set_RunCommand_WorkingDirectory((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj, value!), 112AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand).GetProperty("WorkingDirectory", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 123DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand), 125Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj).EnvironmentVariables, 126Setter = static (obj, value) => __set_RunCommand_EnvironmentVariables((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj, value!), 133AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand).GetProperty("EnvironmentVariables", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 146DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput), 148Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)obj).Version, 156AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 167private void RunCommandSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand? value) 177writer.WriteNumber(PropName_Version, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)value).Version); 178writer.WriteString(PropName_ExecutablePath, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)value).ExecutablePath); 179writer.WriteString(PropName_CommandLineArguments, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)value).CommandLineArguments); 180writer.WriteString(PropName_WorkingDirectory, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)value).WorkingDirectory); 182IReadOnlyDictionaryStringStringSerializeHandler(writer, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)value).EnvironmentVariables); 227private static extern void __set_RunCommand_ExecutablePath(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand obj, string value); 229private static extern void __set_RunCommand_CommandLineArguments(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand obj, string value); 231private static extern void __set_RunCommand_WorkingDirectory(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand obj, string value); 233private static extern void __set_RunCommand_EnvironmentVariables(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand obj, global::System.Collections.Generic.IReadOnlyDictionary<string, string> value);
_generated\33\RunFileApiJsonSerializerContext.GetJsonTypeInfo.g.cs (4)
42if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)) 46if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error)) 50if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)) 54if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand))
Commands\Run\Api\RunApiCommand.cs (9)
34RunApiOutput output = input.Execute(); 39Respond(new RunApiOutput.Error { Message = ex.Message, Details = ex.ToString() }); 45static void Respond(RunApiOutput message) 59public abstract RunApiOutput Execute(); 66public override RunApiOutput Execute() 92return new RunApiOutput.Project 106public override RunApiOutput Execute() 134return new RunApiOutput.RunCommand 182[JsonSerializable(typeof(RunApiOutput))]