12 writes to Name
aspire (1)
BackchannelJsonSerializerContext.ResourceSnapshot.g.cs (1)
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] },
Aspire.Cli.Tests (11)
Backchannel\ResourceSnapshotMapperTests.cs (4)
16
Name
= "test-resource",
51
Name
= "frontend",
102
Name
= "resource1",
116
Name
= "resource2",
Commands\AgentMcpCommandTests.cs (2)
168
Name
= "test-resource",
238
Name
= "my-resource",
Mcp\ListResourcesToolTests.cs (5)
60
Name
= "api-service",
67
Name
= "redis",
74
Name
= "postgres",
106
Name
= "api-service",
145
Name
= "api-service",
16 references to Name
aspire (16)
Backchannel\AppHostAuxiliaryBackchannel.cs (2)
498
snapshots = snapshots.Where(s => s.
Name
.Contains(filter, StringComparison.OrdinalIgnoreCase)).ToList();
534
if (!string.IsNullOrEmpty(filter) && !snapshot.
Name
.Contains(filter, StringComparison.OrdinalIgnoreCase))
Backchannel\ResourceSnapshotMapper.cs (5)
96
ResourceName = match.
Name
120
var resourcePath = DashboardUrls.ResourcesUrl(snapshot.
Name
);
126
Name = snapshot.
Name
,
185
return resource.
Name
;
190
return resource.DisplayName ?? resource.
Name
;
BackchannelJsonSerializerContext.ResourceSnapshot.g.cs (2)
58
Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).
Name
,
463
writer.WriteString(PropName_Name, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).
Name
);
Commands\LogsCommand.cs (2)
309
foreach (var snapshot in snapshots.OrderBy(s => s.
Name
))
311
await foreach (var logLine in connection.GetResourceLogsAsync(snapshot.
Name
, follow: false, cancellationToken).ConfigureAwait(false))
Commands\ResourcesCommand.cs (3)
161
snapshots = snapshots.Where(s => string.Equals(s.
Name
, resourceName, StringComparison.OrdinalIgnoreCase)).ToList();
202
allResources[snapshot.
Name
] = snapshot;
205
if (resourceName is not null && !string.Equals(snapshot.
Name
, resourceName, StringComparison.OrdinalIgnoreCase))
Mcp\McpResourceToolRefreshService.cs (2)
100
var exposedName = $"{resource.
Name
.Replace("-", "_")}_{tool.Name}";
101
refreshedMap[exposedName] = new ResourceToolEntry(resource.
Name
, tool);