3 instantiations of HandshakeResponse
NuGet.Protocol (3)
_generated\67\PluginJsonContext.HandshakeResponse.g.cs (1)
32
ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.Plugins.
HandshakeResponse
((global::NuGet.Protocol.Plugins.MessageResponseCode)args[0], (global::NuGet.Versioning.SemanticVersion)args[1]),
Plugins\RequestHandlers\SymmetricHandshake.cs (2)
73
_handshakeFailedResponse = new
HandshakeResponse
(MessageResponseCode.Error, protocolVersion: null);
200
response = new
HandshakeResponse
(MessageResponseCode.Success, negotiatedProtocolVersion);
25 references to HandshakeResponse
NuGet.Protocol (25)
_generated\67\PluginJsonContext.HandshakeResponse.g.cs (16)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.
HandshakeResponse
>? _HandshakeResponse;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.
HandshakeResponse
> HandshakeResponse
22
get => _HandshakeResponse ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.
HandshakeResponse
>)Options.GetTypeInfo(typeof(global::NuGet.Protocol.Plugins.
HandshakeResponse
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.
HandshakeResponse
> Create_HandshakeResponse(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.Protocol.Plugins.
HandshakeResponse
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.
HandshakeResponse
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::NuGet.Protocol.Plugins.
HandshakeResponse
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.
HandshakeResponse
).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), typeof(global::NuGet.Versioning.SemanticVersion)}, modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::NuGet.Protocol.Plugins.
HandshakeResponse
>(options, objectInfo);
58
DeclaringType = typeof(global::NuGet.Protocol.Plugins.
HandshakeResponse
),
60
Getter = static obj => ((global::NuGet.Protocol.Plugins.
HandshakeResponse
)obj).ResponseCode,
68
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.
HandshakeResponse
).GetProperty("ResponseCode", InstanceMemberBindingFlags, null, typeof(global::NuGet.Protocol.Plugins.MessageResponseCode), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::NuGet.Protocol.Plugins.
HandshakeResponse
),
80
Getter = static obj => ((global::NuGet.Protocol.Plugins.
HandshakeResponse
)obj).ProtocolVersion,
88
AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Plugins.
HandshakeResponse
).GetProperty("ProtocolVersion", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.SemanticVersion), global::System.Array.Empty<global::System.Type>(), null),
_generated\95\PluginJsonContext.GetJsonTypeInfo.g.cs (1)
118
if (type == typeof(global::NuGet.Protocol.Plugins.
HandshakeResponse
))
Plugins\MessageConverter.cs (2)
68
[typeof(
HandshakeResponse
)] = (w, p) => JsonSerializer.Serialize(w, (
HandshakeResponse
)p, PluginJsonContext.Default.HandshakeResponse),
Plugins\Messages\HandshakeResponse.cs (1)
32
/// Initializes a new instance of the <see cref="
HandshakeResponse
" /> class.
Plugins\PluginJsonContext.cs (1)
32
[JsonSerializable(typeof(
HandshakeResponse
))]
Plugins\RequestHandlers\SymmetricHandshake.cs (4)
19
private readonly
HandshakeResponse
_handshakeFailedResponse;
122
var
response = await _connection.SendRequestAndReceiveResponseAsync<HandshakeRequest,
HandshakeResponse
>(
180
var
response = _handshakeFailedResponse;