3 instantiations of HandshakeResponse
NuGet.Protocol (3)
_generated\67\PluginJsonContext.HandshakeResponse.g.cs (1)
32ObjectWithParameterizedConstructorCreator = 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); 200response = new HandshakeResponse(MessageResponseCode.Success, negotiatedProtocolVersion);
25 references to HandshakeResponse
NuGet.Protocol (25)
_generated\67\PluginJsonContext.HandshakeResponse.g.cs (16)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.HandshakeResponse>? _HandshakeResponse; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.HandshakeResponse> HandshakeResponse 22get => _HandshakeResponse ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.HandshakeResponse>)Options.GetTypeInfo(typeof(global::NuGet.Protocol.Plugins.HandshakeResponse)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.HandshakeResponse> Create_HandshakeResponse(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.Protocol.Plugins.HandshakeResponse>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Plugins.HandshakeResponse> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::NuGet.Protocol.Plugins.HandshakeResponse> 35ConstructorAttributeProviderFactory = 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), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::NuGet.Protocol.Plugins.HandshakeResponse>(options, objectInfo); 58DeclaringType = typeof(global::NuGet.Protocol.Plugins.HandshakeResponse), 60Getter = static obj => ((global::NuGet.Protocol.Plugins.HandshakeResponse)obj).ResponseCode, 68AttributeProviderFactory = 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), 78DeclaringType = typeof(global::NuGet.Protocol.Plugins.HandshakeResponse), 80Getter = static obj => ((global::NuGet.Protocol.Plugins.HandshakeResponse)obj).ProtocolVersion, 88AttributeProviderFactory = 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)
118if (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)
19private readonly HandshakeResponse _handshakeFailedResponse; 122var response = await _connection.SendRequestAndReceiveResponseAsync<HandshakeRequest, HandshakeResponse>( 180var response = _handshakeFailedResponse;