5 instantiations of AppHostInformation
aspire (1)
BackchannelJsonSerializerContext.AppHostInformation.g.cs (1)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.
AppHostInformation
(){ AppHostPath = (string)args[0], ProcessId = (int)args[1], CliProcessId = (int?)args[2] },
Aspire.Cli.Tests (4)
Mcp\ListAppHostsToolTests.cs (4)
47
var appHostInfo = new
AppHostInformation
79
var appHostInfo = new
AppHostInformation
111
var inScopeAppHostInfo = new
AppHostInformation
122
var outOfScopeAppHostInfo = new
AppHostInformation
39 references to AppHostInformation
aspire (34)
Backchannel\AppHostAuxiliaryBackchannel.cs (5)
36
AppHostInformation
? appHostInfo,
82
public
AppHostInformation
? AppHostInfo { get; private set; }
142
public async Task<
AppHostInformation
?> GetAppHostInformationAsync(CancellationToken cancellationToken = default)
152
var
appHostInfo = await _rpc.InvokeWithCancellationAsync<
AppHostInformation
?>(
Backchannel\AuxiliaryBackchannelMonitor.cs (2)
258
var
appHostInfo = await rpc.InvokeAsync<
AppHostInformation
?>("GetAppHostInformationAsync").ConfigureAwait(false);
Backchannel\BackchannelJsonSerializerContext.cs (1)
37
[JsonSerializable(typeof(
AppHostInformation
))]
BackchannelJsonSerializerContext.AppHostInformation.g.cs (23)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
AppHostInformation
>? _AppHostInformation;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
AppHostInformation
> AppHostInformation
22
get => _AppHostInformation ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
AppHostInformation
>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.
AppHostInformation
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
AppHostInformation
> Create_AppHostInformation(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.
AppHostInformation
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
AppHostInformation
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.
AppHostInformation
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
AppHostInformation
).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.
AppHostInformation
>(options, objectInfo);
56
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
AppHostInformation
),
58
Getter = static obj => ((global::Aspire.Cli.Backchannel.
AppHostInformation
)obj).AppHostPath,
66
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
AppHostInformation
).GetProperty("AppHostPath", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
79
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
AppHostInformation
),
81
Getter = static obj => ((global::Aspire.Cli.Backchannel.
AppHostInformation
)obj).ProcessId,
89
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
AppHostInformation
).GetProperty("ProcessId", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
100
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
AppHostInformation
),
102
Getter = static obj => ((global::Aspire.Cli.Backchannel.
AppHostInformation
)obj).CliProcessId,
110
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
AppHostInformation
).GetProperty("CliProcessId", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
120
private void AppHostInformationSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.
AppHostInformation
? value)
130
writer.WriteString(PropName_AppHostPath, ((global::Aspire.Cli.Backchannel.
AppHostInformation
)value).AppHostPath);
131
writer.WriteNumber(PropName_ProcessId, ((global::Aspire.Cli.Backchannel.
AppHostInformation
)value).ProcessId);
133
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Cli.Backchannel.
AppHostInformation
)value).CliProcessId, NullableInt32);
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
30
if (type == typeof(global::Aspire.Cli.Backchannel.
AppHostInformation
))
Commands\RunCommand.cs (2)
541
var
appHostInfo = backchannel.AppHostInfo;
579
private async Task<bool> MonitorProcessesForTerminationAsync(
AppHostInformation
appHostInfo, CancellationToken cancellationToken)
Aspire.Cli.Tests (5)
Mcp\ListAppHostsToolTests.cs (5)
47
var
appHostInfo = new AppHostInformation
79
var
appHostInfo = new AppHostInformation
111
var
inScopeAppHostInfo = new AppHostInformation
122
var
outOfScopeAppHostInfo = new AppHostInformation
153
private static AppHostAuxiliaryBackchannel CreateAppHostConnection(string hash, string socketPath,
AppHostInformation
appHostInfo, bool isInScope)