1 instantiation of ResourceSnapshot
aspire (1)
BackchannelJsonSerializerContext.ResourceSnapshot.g.cs (1)
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] },
100 references to ResourceSnapshot
aspire (100)
Backchannel\AppHostAuxiliaryBackchannel.cs (4)
223public async IAsyncEnumerable<ResourceSnapshot> WatchResourceSnapshotsAsync([EnumeratorCancellation] CancellationToken cancellationToken = default) 233IAsyncEnumerable<ResourceSnapshot>? snapshots; 236snapshots = await _rpc.InvokeWithCancellationAsync<IAsyncEnumerable<ResourceSnapshot>>( 252await foreach (var snapshot in snapshots.WithCancellation(cancellationToken).ConfigureAwait(false))
Backchannel\BackchannelJsonSerializerContext.cs (4)
42[JsonSerializable(typeof(ResourceSnapshot))] 43[JsonSerializable(typeof(ResourceSnapshot[]))] 44[JsonSerializable(typeof(IAsyncEnumerable<ResourceSnapshot>))] 45[JsonSerializable(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<ResourceSnapshot>))]
BackchannelJsonSerializerContext.EnumeratorResultsResourceSnapshot.g.cs (25)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>>? _EnumeratorResultsResourceSnapshot; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>> EnumeratorResultsResourceSnapshot 22get => _EnumeratorResultsResourceSnapshot ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>>)Options.GetTypeInfo(typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>> Create_EnumeratorResultsResourceSnapshot(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>> 32ObjectWithParameterizedConstructorCreator = static args => new global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>(){ Values = (global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>)args[0], Finished = (bool)args[1] }, 35ConstructorAttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>>(options, objectInfo); 51var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>> 56DeclaringType = typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>), 58Getter = static obj => ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>)obj).Values, 66AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>).GetProperty("Values", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>), global::System.Array.Empty<global::System.Type>(), null), 69properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>>(options, info0); 76DeclaringType = typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>), 78Getter = static obj => ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>)obj).Finished, 86AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>).GetProperty("Finished", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 97private void EnumeratorResultsResourceSnapshotSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>? value) 108IReadOnlyListResourceSnapshotSerializeHandler(writer, ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>)value).Values); 109writer.WriteBoolean(PropName_finished, ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>)value).Finished); 119ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>),
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (5)
78if (type == typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot)) 82if (type == typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot[])) 146if (type == typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.ResourceSnapshot>)) 178if (type == typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.ResourceSnapshot>)) 214if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>))
BackchannelJsonSerializerContext.IAsyncEnumerableResourceSnapshot.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.ResourceSnapshot>>? _IAsyncEnumerableResourceSnapshot; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.ResourceSnapshot>> IAsyncEnumerableResourceSnapshot 22get => _IAsyncEnumerableResourceSnapshot ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.ResourceSnapshot>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.ResourceSnapshot>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.ResourceSnapshot>> Create_IAsyncEnumerableResourceSnapshot(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.ResourceSnapshot>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.ResourceSnapshot>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.ResourceSnapshot>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIAsyncEnumerableInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.ResourceSnapshot>, global::Aspire.Cli.Backchannel.ResourceSnapshot>(options, info);
BackchannelJsonSerializerContext.IReadOnlyListResourceSnapshot.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>>? _IReadOnlyListResourceSnapshot; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>> IReadOnlyListResourceSnapshot 22get => _IReadOnlyListResourceSnapshot ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>> Create_IReadOnlyListResourceSnapshot(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>, global::Aspire.Cli.Backchannel.ResourceSnapshot>(options, info); 45private void IReadOnlyListResourceSnapshotSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.ResourceSnapshot>? value) 55foreach (global::Aspire.Cli.Backchannel.ResourceSnapshot element in value)
BackchannelJsonSerializerContext.ResourceSnapshot.g.cs (27)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot>? _ResourceSnapshot; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot> ResourceSnapshot 22get => _ResourceSnapshot ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot> Create_ResourceSnapshot(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.ResourceSnapshot>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.ResourceSnapshot> 35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).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.ResourceSnapshot>(options, objectInfo); 56DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot), 58Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).Name, 66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 79DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot), 81Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).Type, 89AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 102DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot), 104Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).State, 112AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("State", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 122DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot), 124Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).McpServer, 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), 142private void ResourceSnapshotSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.ResourceSnapshot? value) 152writer.WriteString(PropName_Name, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).Name); 153writer.WriteString(PropName_Type, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).Type); 154writer.WriteString(PropName_State, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).State); 156ResourceSnapshotMcpServerSerializeHandler(writer, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).McpServer);
BackchannelJsonSerializerContext.ResourceSnapshotArray.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot[]>? _ResourceSnapshotArray; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot[]> ResourceSnapshotArray 22get => _ResourceSnapshotArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot[]>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot[])); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot[]> Create_ResourceSnapshotArray(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.ResourceSnapshot[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot[]> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Aspire.Cli.Backchannel.ResourceSnapshot[]> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot>(options, info); 45private void ResourceSnapshotArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.ResourceSnapshot[]? value)
Commands\McpStartCommand.cs (3)
310var resourcesWithTools = new List<ResourceSnapshot>(); 313await foreach (var snapshot in connection.WatchResourceSnapshotsAsync(cancellationToken).ConfigureAwait(false)) 329foreach (var resource in resourcesWithTools)