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
130 references to RunApiOutput
dotnet (130)
_generated\22\RunFileApiJsonSerializerContext.RunApiOutput.g.cs (15)
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> 44new global::System.Text.Json.Serialization.Metadata.JsonDerivedType(typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error), "Error"), 45new global::System.Text.Json.Serialization.Metadata.JsonDerivedType(typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project), "Project"), 46new global::System.Text.Json.Serialization.Metadata.JsonDerivedType(typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand), "RunCommand"), 52jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput>(options, objectInfo); 69DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput), 71Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)obj).Version, 79AttributeProviderFactory = 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), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error), 60Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error)obj).Message, 61Setter = static (obj, value) => __set_Error_Message((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error)obj, value!), 68AttributeProviderFactory = 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), 81DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error), 83Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error)obj).Details, 84Setter = static (obj, value) => __set_Error_Details((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error)obj, value!), 91AttributeProviderFactory = 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), 104DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput), 106Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)obj).Version, 114AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 125private void ErrorSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error? value) 135writer.WriteNumber(PropName_Version, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)value).Version); 136writer.WriteString(PropName_Message, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error)value).Message); 137writer.WriteString(PropName_Details, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error)value).Details); 164private static extern void __set_Error_Message(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error obj, string value); 166private 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), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project), 60Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)obj).Content, 61Setter = static (obj, value) => __set_Project_Content((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)obj, value!), 68AttributeProviderFactory = 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), 81DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project), 83Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)obj).ProjectPath, 84Setter = static (obj, value) => __set_Project_ProjectPath((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)obj, value!), 91AttributeProviderFactory = 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), 104DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project), 106Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)obj).Diagnostics, 107Setter = static (obj, value) => __set_Project_Diagnostics((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)obj, value!), 114AttributeProviderFactory = 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), 125DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput), 127Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)obj).Version, 135AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 146private void ProjectSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project? value) 156writer.WriteNumber(PropName_Version, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)value).Version); 157writer.WriteString(PropName_Content, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)value).Content); 158writer.WriteString(PropName_ProjectPath, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)value).ProjectPath); 160ImmutableArraySimpleDiagnosticSerializeHandler(writer, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project)value).Diagnostics); 196private static extern void __set_Project_Content(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project obj, string value); 198private static extern void __set_Project_ProjectPath(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project obj, string value); 200private 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), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand), 60Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj).ExecutablePath, 61Setter = static (obj, value) => __set_RunCommand_ExecutablePath((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj, value!), 68AttributeProviderFactory = 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), 81DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand), 83Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj).CommandLineArguments, 84Setter = static (obj, value) => __set_RunCommand_CommandLineArguments((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj, value!), 91AttributeProviderFactory = 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), 104DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand), 106Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj).WorkingDirectory, 107Setter = static (obj, value) => __set_RunCommand_WorkingDirectory((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj, value!), 114AttributeProviderFactory = 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), 125DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand), 127Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj).EnvironmentVariables, 128Setter = static (obj, value) => __set_RunCommand_EnvironmentVariables((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)obj, value!), 135AttributeProviderFactory = 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), 148DeclaringType = typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput), 150Getter = static obj => ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)obj).Version, 158AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 169private void RunCommandSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand? value) 179writer.WriteNumber(PropName_Version, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput)value).Version); 180writer.WriteString(PropName_ExecutablePath, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)value).ExecutablePath); 181writer.WriteString(PropName_CommandLineArguments, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)value).CommandLineArguments); 182writer.WriteString(PropName_WorkingDirectory, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)value).WorkingDirectory); 184IReadOnlyDictionaryStringStringSerializeHandler(writer, ((global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand)value).EnvironmentVariables); 229private static extern void __set_RunCommand_ExecutablePath(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand obj, string value); 231private static extern void __set_RunCommand_CommandLineArguments(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand obj, string value); 233private static extern void __set_RunCommand_WorkingDirectory(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand obj, string value); 235private 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))]