110 references to MessageResponseCode
NuGet.Credentials (2)
SecurePluginCredentialProvider.cs (2)
133
if (credentialResponse.ResponseCode ==
MessageResponseCode
.NotFound && nonInteractive)
217
else if (credentialResponse.ResponseCode ==
MessageResponseCode
.NotFound)
NuGet.Protocol (108)
Plugins\Messages\CopyFilesInPackageResponse.cs (6)
28
public
MessageResponseCode
ResponseCode { get; }
36
/// is an undefined <see cref="
MessageResponseCode
" /> value.</exception>
38
/// is <see cref="
MessageResponseCode
.Success" /> and <paramref name="copiedFiles" />
41
public CopyFilesInPackageResponse(
MessageResponseCode
responseCode, IEnumerable<string> copiedFiles)
43
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
53
if (responseCode ==
MessageResponseCode
.Success && (copiedFiles == null || !copiedFiles.Any()))
Plugins\Messages\CopyNupkgFileResponse.cs (4)
19
public
MessageResponseCode
ResponseCode { get; }
26
/// is an undefined <see cref="
MessageResponseCode
" /> value.</exception>
28
public CopyNupkgFileResponse(
MessageResponseCode
responseCode)
30
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
Plugins\Messages\GetAuthenticationCredentialsResponse.cs (4)
43
public
MessageResponseCode
ResponseCode { get; }
55
public GetAuthenticationCredentialsResponse(string username, string password, string message, IList<string> authenticationTypes,
MessageResponseCode
responseCode)
58
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
82
public bool IsValid() => ResponseCode ==
MessageResponseCode
.Success && (!string.IsNullOrWhiteSpace(Username) || !string.IsNullOrWhiteSpace(Password))
Plugins\Messages\GetCredentialsResponse.cs (4)
27
public
MessageResponseCode
ResponseCode { get; }
42
/// is an undefined <see cref="
MessageResponseCode
" /> value.</exception>
45
MessageResponseCode
responseCode,
50
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
Plugins\Messages\GetFilesInPackageResponse.cs (6)
28
public
MessageResponseCode
ResponseCode { get; }
36
/// is an undefined <see cref="
MessageResponseCode
" /> value.</exception>
38
/// is <see cref="
MessageResponseCode
.Success" /> and <paramref name="files" />
41
public GetFilesInPackageResponse(
MessageResponseCode
responseCode, IEnumerable<string> files)
43
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
53
if (responseCode ==
MessageResponseCode
.Success && (files == null || !files.Any()))
Plugins\Messages\GetPackageHashResponse.cs (6)
26
public
MessageResponseCode
ResponseCode { get; }
33
/// is an undefined <see cref="
MessageResponseCode
" /> value.</exception>
35
/// is <see cref="
MessageResponseCode
.Success" /> and <paramref name="hash" />
38
public GetPackageHashResponse(
MessageResponseCode
responseCode, string hash)
40
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
50
if (responseCode ==
MessageResponseCode
.Success && string.IsNullOrEmpty(hash))
Plugins\Messages\GetPackageVersionsResponse.cs (6)
23
public
MessageResponseCode
ResponseCode { get; }
36
/// is an undefined <see cref="
MessageResponseCode
" /> value.</exception>
38
/// is <see cref="
MessageResponseCode
.Success" /> and <paramref name="versions" />
41
public GetPackageVersionsResponse(
MessageResponseCode
responseCode, IEnumerable<string> versions)
43
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
53
if (responseCode ==
MessageResponseCode
.Success && (versions == null || !versions.Any()))
Plugins\Messages\GetServiceIndexResponse.cs (6)
22
public
MessageResponseCode
ResponseCode { get; }
35
/// is an undefined <see cref="
MessageResponseCode
" /> value.</exception>
37
/// is <see cref="
MessageResponseCode
.Success" /> and <paramref name="serviceIndex" />
40
public GetServiceIndexResponse(
MessageResponseCode
responseCode, JObject serviceIndex)
42
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
52
if (responseCode ==
MessageResponseCode
.Success && serviceIndex == null)
Plugins\Messages\HandshakeResponse.cs (7)
22
public
MessageResponseCode
ResponseCode { get; }
37
/// is an undefined <see cref="
MessageResponseCode
" /> value.</exception>
39
/// is <see cref="
MessageResponseCode
.Success" /> and <paramref name="protocolVersion" />
42
/// is not <see cref="
MessageResponseCode
.Success" /> and <paramref name="protocolVersion" />
45
public HandshakeResponse(
MessageResponseCode
responseCode, SemanticVersion protocolVersion)
47
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
57
if (responseCode ==
MessageResponseCode
.Success)
Plugins\Messages\InitializeResponse.cs (4)
19
public
MessageResponseCode
ResponseCode { get; }
26
/// is an undefined <see cref="
MessageResponseCode
" /> value.</exception>
28
public InitializeResponse(
MessageResponseCode
responseCode)
30
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
Plugins\Messages\LogResponse.cs (4)
19
public
MessageResponseCode
ResponseCode { get; }
26
/// is an undefined <see cref="
MessageResponseCode
" /> value.</exception>
28
public LogResponse(
MessageResponseCode
responseCode)
30
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
Plugins\Messages\MonitorNuGetProcessExitResponse.cs (4)
19
public
MessageResponseCode
ResponseCode { get; }
26
/// is an undefined <see cref="
MessageResponseCode
" /> value.</exception>
28
public MonitorNuGetProcessExitResponse(
MessageResponseCode
responseCode)
30
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
Plugins\Messages\PrefetchPackageResponse.cs (4)
19
public
MessageResponseCode
ResponseCode { get; }
26
/// is an undefined <see cref="
MessageResponseCode
" /> value.</exception>
28
public PrefetchPackageResponse(
MessageResponseCode
responseCode)
30
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
Plugins\Messages\SetCredentialsResponse.cs (4)
19
public
MessageResponseCode
ResponseCode { get; }
26
/// is an undefined <see cref="
MessageResponseCode
" /> value.</exception>
28
public SetCredentialsResponse(
MessageResponseCode
responseCode)
30
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
Plugins\Messages\SetLogLevelResponse.cs (4)
19
public
MessageResponseCode
ResponseCode { get; }
26
/// is an undefined <see cref="
MessageResponseCode
" /> value.</exception>
28
public SetLogLevelResponse(
MessageResponseCode
responseCode)
30
if (!Enum.IsDefined(typeof(
MessageResponseCode
), responseCode))
Plugins\PluginManager.cs (1)
424
if (response != null && response.ResponseCode !=
MessageResponseCode
.Success)
Plugins\PluginPackageDownloader.cs (1)
207
if (response != null && response.ResponseCode ==
MessageResponseCode
.Success)
Plugins\PluginPackageReader.cs (11)
295
case
MessageResponseCode
.Success:
298
case
MessageResponseCode
.Error:
307
case
MessageResponseCode
.NotFound:
943
case
MessageResponseCode
.Success:
946
case
MessageResponseCode
.NotFound:
1042
case
MessageResponseCode
.Success:
1045
case
MessageResponseCode
.Error:
1054
case
MessageResponseCode
.NotFound:
1081
case
MessageResponseCode
.Success:
1084
case
MessageResponseCode
.Error:
1093
case
MessageResponseCode
.NotFound:
Plugins\RequestHandlers\GetCredentialsRequestHandler.cs (5)
163
MessageResponseCode
.Success,
171
MessageResponseCode
.Success,
180
networkCredential != null ?
MessageResponseCode
.Success :
MessageResponseCode
.NotFound,
188
MessageResponseCode
.NotFound,
Plugins\RequestHandlers\GetServiceIndexRequestHandler.cs (2)
132
responsePayload = new GetServiceIndexResponse(
MessageResponseCode
.NotFound, serviceIndex: null);
138
responsePayload = new GetServiceIndexResponse(
MessageResponseCode
.Success, serviceIndexJson);
Plugins\RequestHandlers\LogRequestHandler.cs (3)
80
MessageResponseCode
responseCode;
86
responseCode =
MessageResponseCode
.Success;
90
responseCode =
MessageResponseCode
.Error;
Plugins\RequestHandlers\MonitorNuGetProcessExitRequestHandler.cs (3)
107
MessageResponseCode
responseCode;
111
responseCode =
MessageResponseCode
.NotFound;
119
responseCode =
MessageResponseCode
.Success;
Plugins\RequestHandlers\SymmetricHandshake.cs (3)
73
_handshakeFailedResponse = new HandshakeResponse(
MessageResponseCode
.Error, protocolVersion: null);
127
if (response != null && response.ResponseCode ==
MessageResponseCode
.Success)
200
response = new HandshakeResponse(
MessageResponseCode
.Success, negotiatedProtocolVersion);
RemoteRepositories\PluginFindPackageByIdResource.cs (4)
291
if (response != null && response.ResponseCode ==
MessageResponseCode
.Success)
425
case
MessageResponseCode
.Success:
428
case
MessageResponseCode
.Error:
436
case
MessageResponseCode
.NotFound:
Resources\DownloadResourcePlugin.cs (2)
124
if (response.ResponseCode ==
MessageResponseCode
.Success)
131
if (response.ResponseCode ==
MessageResponseCode
.NotFound)