2 types derived from RunApiOutput
Microsoft.CodeAnalysis.LanguageServer (2)
FileBasedPrograms\RunApiModels.cs (2)
34
public sealed class Error :
RunApiOutput
40
public sealed class Project :
RunApiOutput
68 references to RunApiOutput
Microsoft.CodeAnalysis.LanguageServer (68)
FileBasedPrograms\RunApiModels.cs (1)
85
[JsonSerializable(typeof(
RunApiOutput
))]
FileBasedPrograms\VirtualProjectXmlProvider.cs (4)
118
var
response = JsonSerializer.Deserialize(responseJson, RunFileApiJsonSerializerContext.Default.RunApiOutput);
119
if (response is
RunApiOutput
.Error error)
121
logger.LogError($"dotnet run-api version: {error.Version}. Latest known version: {
RunApiOutput
.LatestKnownVersion}");
126
if (response is
RunApiOutput
.Project project)
RunFileApiJsonSerializerContext.Error.g.cs (24)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error>? _Error;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error> Error
22
get => _Error ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error>)Options.GetTypeInfo(typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error> Create_Error(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error>
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error(){ Message = (string)args[0], Details = (string)args[1] },
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
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.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error>(options, objectInfo);
56
DeclaringType = typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error),
58
Getter = static obj => ((global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error)obj).Message,
66
AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
79
DeclaringType = typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error),
81
Getter = static obj => ((global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error)obj).Details,
89
AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error).GetProperty("Details", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
102
DeclaringType = typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
),
104
Getter = static obj => ((global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
)obj).Version,
112
AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
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.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error? value)
133
writer.WriteNumber(PropName_Version, ((global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
)value).Version);
134
writer.WriteString(PropName_Message, ((global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error)value).Message);
135
writer.WriteString(PropName_Details, ((global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error)value).Details);
RunFileApiJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
38
if (type == typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
))
42
if (type == typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Error))
46
if (type == typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project))
RunFileApiJsonSerializerContext.Project.g.cs (24)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project>? _Project;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project> Project
22
get => _Project ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project>)Options.GetTypeInfo(typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project> Create_Project(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project>
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project(){ Content = (string)args[0], Diagnostics = (global::System.Collections.Immutable.ImmutableArray<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.SimpleDiagnostic>)args[1] },
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
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.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project>(options, objectInfo);
56
DeclaringType = typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project),
58
Getter = static obj => ((global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project)obj).Content,
66
AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project).GetProperty("Content", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
79
DeclaringType = typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project),
81
Getter = static obj => ((global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project)obj).Diagnostics,
89
AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project).GetProperty("Diagnostics", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Immutable.ImmutableArray<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.SimpleDiagnostic>), global::System.Array.Empty<global::System.Type>(), null),
100
DeclaringType = typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
),
102
Getter = static obj => ((global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
)obj).Version,
110
AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
121
private void ProjectSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project? value)
131
writer.WriteNumber(PropName_Version, ((global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
)value).Version);
132
writer.WriteString(PropName_Content, ((global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project)value).Content);
134
ImmutableArraySimpleDiagnosticSerializeHandler(writer, ((global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
.Project)value).Diagnostics);
RunFileApiJsonSerializerContext.RunApiOutput.g.cs (12)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
>? _RunApiOutput;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
> RunApiOutput
22
get => _RunApiOutput ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
>)Options.GetTypeInfo(typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
> Create_RunApiOutput(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
>
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
>(options, objectInfo);
56
DeclaringType = typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
),
58
Getter = static obj => ((global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
)obj).Version,
66
AttributeProviderFactory = static () => typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.
RunApiOutput
).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),