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