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