4 instantiations of ResourceSnapshotMcpServer
aspire (1)
BackchannelJsonSerializerContext.ResourceSnapshotMcpServer.g.cs (1)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
(){ EndpointUrl = (string)args[0], Tools = (global::ModelContextProtocol.Protocol.Tool[])args[1] },
Aspire.Cli.Tests (3)
Backchannel\BackchannelJsonSerializerContextTests.cs (1)
19
new
()
Commands\AgentMcpCommandTests.cs (2)
172
McpServer = new
ResourceSnapshotMcpServer
242
McpServer = new
ResourceSnapshotMcpServer
29 references to ResourceSnapshotMcpServer
aspire (27)
Backchannel\BackchannelJsonSerializerContext.cs (1)
50
[JsonSerializable(typeof(
ResourceSnapshotMcpServer
))]
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
178
if (type == typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
))
BackchannelJsonSerializerContext.ResourceSnapshot.g.cs (5)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.ResourceSnapshot(){ Name = (string)args[0], DisplayName = (string)args[1], ResourceType = (string)args[2], Type = (string)args[3], State = (string)args[4], StateStyle = (string)args[5], HealthStatus = (string)args[6], ExitCode = (int?)args[7], CreatedAt = (global::System.DateTimeOffset?)args[8], StartedAt = (global::System.DateTimeOffset?)args[9], StoppedAt = (global::System.DateTimeOffset?)args[10], Urls = (global::Aspire.Cli.Backchannel.ResourceSnapshotUrl[])args[11], Relationships = (global::Aspire.Cli.Backchannel.ResourceSnapshotRelationship[])args[12], HealthReports = (global::Aspire.Cli.Backchannel.ResourceSnapshotHealthReport[])args[13], Volumes = (global::Aspire.Cli.Backchannel.ResourceSnapshotVolume[])args[14], EnvironmentVariables = (global::Aspire.Cli.Backchannel.ResourceSnapshotEnvironmentVariable[])args[15], Properties = (global::System.Collections.Generic.Dictionary<string, string>)args[16], McpServer = (global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
)args[17], Commands = (global::Aspire.Cli.Backchannel.ResourceSnapshotCommand[])args[18] },
406
var info17 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
>
421
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("McpServer", InstanceMemberBindingFlags, null, typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
), global::System.Array.Empty<global::System.Type>(), null),
424
properties[17] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
>(options, info17);
656
ParameterType = typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
),
BackchannelJsonSerializerContext.ResourceSnapshotMcpServer.g.cs (19)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
>? _ResourceSnapshotMcpServer;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
> ResourceSnapshotMcpServer
22
get => _ResourceSnapshotMcpServer ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
> Create_ResourceSnapshotMcpServer(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
>(options, objectInfo);
56
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
),
58
Getter = static obj => ((global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
)obj).EndpointUrl,
66
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
).GetProperty("EndpointUrl", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
79
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
),
81
Getter = static obj => ((global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
)obj).Tools,
89
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
).GetProperty("Tools", InstanceMemberBindingFlags, null, typeof(global::ModelContextProtocol.Protocol.Tool[]), global::System.Array.Empty<global::System.Type>(), null),
102
private void ResourceSnapshotMcpServerSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
? value)
112
writer.WriteString(PropName_EndpointUrl, ((global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
)value).EndpointUrl);
114
ToolArraySerializeHandler(writer, ((global::Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
)value).Tools);
src\Aspire.Hosting\Backchannel\BackchannelDataTypes.cs (1)
666
public
ResourceSnapshotMcpServer
? McpServer { get; init; }
Aspire.Cli.Tests (2)
Backchannel\BackchannelJsonSerializerContextTests.cs (2)
17
var servers = new Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
[]
35
var roundTripped = JsonSerializer.Deserialize<Aspire.Cli.Backchannel.
ResourceSnapshotMcpServer
[]>(json, options);