-
Notifications
You must be signed in to change notification settings - Fork 9.8k
/
NegotiationResponse.cs
48 lines (40 loc) · 1.54 KB
/
NegotiationResponse.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
namespace Microsoft.AspNetCore.Http.Connections
{
/// <summary>
/// A response to a '/negotiate' request.
/// </summary>
public class NegotiationResponse
{
/// <summary>
/// An optional Url to redirect the client to another endpoint.
/// </summary>
public string Url { get; set; }
/// <summary>
/// An optional access token to go along with the Url.
/// </summary>
public string AccessToken { get; set; }
/// <summary>
/// The public ID for the connection.
/// </summary>
public string ConnectionId { get; set; }
/// <summary>
/// The private ID for the connection.
/// </summary>
public string ConnectionToken { get; set; }
/// <summary>
/// The minimum value between the version the client sends and the maximum version the server supports.
/// </summary>
public int Version { get; set; }
/// <summary>
/// A list of transports the server supports.
/// </summary>
public IList<AvailableTransport> AvailableTransports { get; set; }
/// <summary>
/// An optional error during the negotiate. If this is not null the other properties on the response can be ignored.
/// </summary>
public string Error { get; set; }
}
}