4 instantiations of new
Aspire.Hosting.Native.Core.Tests (1)
NativeProviderProtocolTests.cs (1)
129var type = new NativeProviderType("example.protocol/Resource", NativeProviderValueKind.Handle);
Aspire.Hosting.Native.Server (3)
Rpc\NativeProviderContractProjection.cs (3)
52arguments.Add(new(parameter.Name, new("callback", NativeProviderValueKind.Callback), 109return new(id, NativeProviderValueKind.Handle); 125return new(id, kind.Value);
14 references to new
Aspire.Hosting.Native.Core.Tests (1)
NativeProviderProtocolTests.cs (1)
129var type = new NativeProviderType("example.protocol/Resource", NativeProviderValueKind.Handle);
Aspire.Hosting.Native.Server (13)
Rpc\NativeProviderContractProjection.cs (9)
36var resultType = ProjectType(metadata.ReturnType); 47var callbackResult = ProjectType(callback.ReturnType); 91NativeProviderType ProjectType(NativeProviderMetadataType metadataType) 93var type = ProjectSupportedType(metadataType, packageName); 103private NativeProviderType ProjectSupportedType(NativeProviderMetadataType type, string packageName) 140internal sealed record NativeProviderCallback(NativeProviderType[] Parameters, NativeProviderType ReturnType); 141internal sealed record NativeProviderParameter(string Name, NativeProviderType Type, NativeProviderCallback? Callback); 142internal sealed record NativeProviderCapability(string Id, NativeProviderParameter[] Parameters, NativeProviderType ReturnType,
Rpc\NativeProviderRegistry.cs (2)
381private JsonNode? ToProvider(Registration registration, NativeRpcConnection caller, JsonNode? value, NativeProviderType type, 409private JsonNode? ToCaller(Registration registration, NativeRpcConnection caller, JsonNode? value, NativeProviderType type,
Rpc\NativeProviderValueProtocol.cs (2)
11public static void ValidatePrimitive(JsonNode? value, NativeProviderType type) 24public static NativeProviderHandle ParseReturnedHandle(JsonNode? value, NativeProviderType type, IReadOnlySet<string> coreHandles)