2 instantiations of ResourceSnapshotMcpServer
aspire (1)
BackchannelJsonSerializerContext.ResourceSnapshotMcpServer.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer(){ EndpointUrl = (string)args[0], Tools = (global::ModelContextProtocol.Protocol.Tool[])args[1] },
Aspire.Cli.Tests (1)
Backchannel\BackchannelJsonSerializerContextTests.cs (1)
19new()
29 references to ResourceSnapshotMcpServer
aspire (27)
Backchannel\BackchannelJsonSerializerContext.cs (1)
46[JsonSerializable(typeof(ResourceSnapshotMcpServer))]
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
86if (type == typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer))
BackchannelJsonSerializerContext.ResourceSnapshot.g.cs (5)
32ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.ResourceSnapshot(){ Name = (string)args[0], Type = (string)args[1], State = (string)args[2], McpServer = (global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer)args[3] }, 117var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer> 132AttributeProviderFactory = 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), 135properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer>(options, info3); 193ParameterType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer),
BackchannelJsonSerializerContext.ResourceSnapshotMcpServer.g.cs (19)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer>? _ResourceSnapshotMcpServer; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer> ResourceSnapshotMcpServer 22get => _ResourceSnapshotMcpServer ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer> Create_ResourceSnapshotMcpServer(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer> 35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer>(options, objectInfo); 56DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer), 58Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer)obj).EndpointUrl, 66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer).GetProperty("EndpointUrl", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 79DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer), 81Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer)obj).Tools, 89AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer).GetProperty("Tools", InstanceMemberBindingFlags, null, typeof(global::ModelContextProtocol.Protocol.Tool[]), global::System.Array.Empty<global::System.Type>(), null), 102private void ResourceSnapshotMcpServerSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer? value) 112writer.WriteString(PropName_EndpointUrl, ((global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer)value).EndpointUrl); 114ToolArraySerializeHandler(writer, ((global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer)value).Tools);
src\Aspire.Hosting\Backchannel\BackchannelDataTypes.cs (1)
293public ResourceSnapshotMcpServer? McpServer { get; init; }
Aspire.Cli.Tests (2)
Backchannel\BackchannelJsonSerializerContextTests.cs (2)
17var servers = new Aspire.Cli.Backchannel.ResourceSnapshotMcpServer[] 35var roundTripped = JsonSerializer.Deserialize<Aspire.Cli.Backchannel.ResourceSnapshotMcpServer[]>(json, options);